Adjusting area of focus of vehicle sensors by controlling spatial distributions of scan lines

ABSTRACT

A method for controlling at least a first sensor of a vehicle, which senses an environment through which the vehicle is moving by producing a plurality of scan lines arranged according to a spatial distribution, includes receiving sensor data generated by one or more sensors. The one or more sensors are configured to sense the environment through which the vehicle is moving. The method also includes identifying, by one or more processors and based on the received sensor data, one or more areas of interest in the environment, and causing, by one or more processors and based on the areas of interest, the spatial distribution of the plurality of scan lines produced by the first sensor to be adjusted.

CROSS-REFERENCE TO RELATED APPLICATIONS

This claims the benefit of U.S. Provisional Patent Application No.62/598,165, filed on Dec. 13, 2017 and entitled “Software ControlledSensors For Vehicles,” the disclosure of which is hereby incorporatedherein by reference in its entirety.

FIELD OF TECHNOLOGY

This disclosure generally relates to vehicle sensors and, moreparticularly, to software-based techniques for controlling vehiclesensors and processing vehicle sensor data.

BACKGROUND

The background description provided herein is for the purpose ofgenerally presenting the context of the disclosure. Work of thepresently named inventors, to the extent it is described in thisbackground section, as well as aspects of the description that may nototherwise qualify as prior art at the time of filing, are neitherexpressly nor impliedly admitted as prior art against the presentdisclosure.

Self-driving or “autonomous” vehicles generally employ sensors, such aslight detection and ranging (lidar) devices, to detect or “see” thesurrounding environment as the vehicles move toward their destinations.Such vehicles include control systems that process the sensor data and,based on both the sensed environment and the desired destination,determine which maneuvers and operational parameters (e.g., speed,braking force, steering direction) are most appropriate on a more orless continuous basis throughout the trip. The autonomous vehicles seeknot only to arrive at the desired destination, but also to maintain thesafety of both the autonomous vehicle passengers and any individuals whomay be in the general vicinity of the autonomous vehicles.

Achieving this goal is a formidable challenge, largely because anautonomous vehicle is surrounded by an environment that can rapidlychange, with a wide variety of objects (e.g., other vehicles,pedestrians, stop signs, traffic lights, curbs, lane markings, etc.)potentially being present in virtually any location/orientation relativeto the vehicle. Thus, it may be difficult to determine whichconfigurations or parameters are most appropriate for particular sensors(e.g., the elevation angle of a lidar device). While a larger number ofsensors may help ensure that an autonomous vehicle can “see” importantareas of interest in different situations, each additional sensorgenerally increases the cost of the autonomous vehicle. Moreover, whilesensors with variable parameters may be useful over a greater range ofscenarios than sensors with fixed parameters, such variations may makeit difficult to design components that are tasked with processing thedata produced by those sensors.

SUMMARY

In one embodiment, a method for controlling at least a first sensor of avehicle, where the first sensor senses an environment through which thevehicle is moving by producing a plurality of scan lines arrangedaccording to a spatial distribution, includes receiving sensor datagenerated by one or more sensors. The one or more sensors are configuredto sense the environment through which the vehicle is moving. The methodalso includes identifying, by one or more processors and based on thereceived sensor data, one or more areas of interest in the environment.The method also includes causing, by one or more processors and based onthe areas of interest, the spatial distribution of the plurality of scanlines produced by the first sensor to be adjusted.

In another embodiment, a non-transitory computer-readable medium storesthereon instructions executable by one or more processors to implement asensor control architecture for controlling at least a first sensor of avehicle. The first sensor senses an environment through which thevehicle is moving by producing a plurality of scan lines arrangedaccording to a spatial distribution. The sensor control architecture isconfigured to receive sensor data generated by one or more sensors ofthe vehicle. The one or more sensors are configured to sense theenvironment through which the vehicle is moving. The sensor controlarchitecture is also configured to identify, based on the receivedsensor data, one or more areas of interest in the environment, andcause, based on the areas of interest, the spatial distribution of theplurality of scan lines produced by the first sensor to be adjusted.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an example software architecture forcontrolling parameters of one or more vehicle sensors based on dynamicobjects in the vehicle's environment;

FIG. 2 is a block diagram of an example light detection and ranging(lidar) system that may be controlled using the sensor controlarchitecture of FIG. 1;

FIG. 3 illustrates an example scan pattern which the lidar system ofFIG. 2 may produce when identifying targets within a field of regard;

FIG. 4A illustrates an example vehicle in which the lidar system of FIG.2 may operate;

FIG. 4B illustrates another example vehicle in which the lidar system ofFIG. 2 may operate;

FIG. 5A illustrates an example environment in the direction of travel ofan autonomous vehicle;

FIG. 5B illustrates an example point cloud that may be generated for theenvironment of FIG. 5A;

FIG. 6 is a block diagram of an example software architecture forcontrolling a self-driving vehicle;

FIG. 7 is a block diagram of an example software architecture forcontrolling scan line distributions of a vehicle sensor;

FIGS. 8A-8D illustrate a number of example scan patterns that the sensorcontrol architecture of FIG. 7 may cause a sensor to utilize;

FIG. 9 is a block diagram of an example software architecture forcontrolling a vehicle sensor using a trained attention model;

FIG. 10 illustrates example scenarios in which the focus of a vehiclesensor is not dynamically adjusted based on the road configuration;

FIG. 11 illustrates example scenarios in which the focus of a vehiclesensor is dynamically adjusted based on the road configuration;

FIG. 12 is a block diagram of an example perception component includinga number of neural networks for which training is conditioned onparticular sensor parameter settings;

FIG. 13 is a block diagram of an example perception component includingseparately trained neural networks (or sets of neural networks) eachcorresponding to a different sensor parameter setting;

FIG. 14 is a block diagram of an example perception component that usesinterpolation techniques to handle different scan line distributions;

FIG. 15 is a block diagram of an example computing system forcontrolling vehicle sensors and/or processing vehicle sensor data, whichmay be used to implement the sensor control architecture of FIG. 1, 7 or9, the self-driving control architecture of FIG. 6, and/or theperception component of FIG. 12, 13 or 14;

FIG. 16 is a flow diagram of an example method for controlling at leasta first sensor based on the current and/or predicted positions of one ormore dynamic objects;

FIG. 17 is a flow diagram of an example method for controlling at leasta first sensor using a trained attention model;

FIG. 18 is a flow diagram of an example method for configuring aperception component by conditioning the training of a machine learningbased model on particular sensor parameter settings;

FIG. 19 is a flow diagram of an example method for configuring aperception component by training different neural networks usingtraining data that corresponds to different sensor parameter settings;

FIG. 20 is a flow diagram of an example method for processing pointclouds having variable spatial distributions of scan lines;

FIG. 21 is a flow diagram of another example method for processing pointclouds having variable spatial distributions of scan lines;

FIG. 22 is a flow diagram of still another method for processing pointclouds having variable spatial distributions of scan lines;

FIG. 23 is a flow diagram of an example method for determining elevationof a sensor's field of regard based on road configuration; and

FIG. 24 is a flow diagram of an example method for controlling the scanline distribution of a first sensor.

DETAILED DESCRIPTION Overview

Software-based techniques of this disclosure are used to controlparameters of vehicle sensors, and/or to process the data generated bysuch sensors. The vehicle may be a fully self-driving or “autonomous”vehicle, a vehicle controlled by a human driver, or some hybrid of thetwo. For example, the disclosed techniques may be used to capturevehicle environment information to improve the safety/performance of anautonomous vehicle, to generate alerts for a human driver, or simply tocollect data relating to a particular driving trip (e.g., to record howmany other vehicles or pedestrians were encountered during the trip,etc.). The sensors may be any type or types of sensors capable ofsensing an environment through which the vehicle is moving, such aslidar, radar, cameras, and/or other types of sensors. The vehicle mayalso include other sensors, such as inertial measurement units (IMUs),and/or include other types of devices that provide information on thecurrent position of the vehicle (e.g., a GPS unit).

The sensor data (and possibly other data) is processed by a perceptioncomponent of the vehicle, which outputs signals indicative of thecurrent state of the vehicle's environment. For example, the perceptioncomponent may identify positions of (and possibly classify and/or track)objects within the vehicle's environment. As a more specific examplethat utilizes lidar or radar data, the perception component may include(1) a segmentation module that partitions lidar or radar point cloudsdevices into subsets of points that correspond to probable objects, (2)a classification module that determines labels/classes for the subsetsof points (segmented objects), and (3) a tracking module that trackssegmented and/or classified objects over time (i.e., across subsequentpoint cloud frames).

With respect to sensor control, sensor parameters may be adjusted basedon various types of information and/or criteria. In some embodiments,parameters that dictate the area of focus of a sensor are controlled.For example, the center and/or size of a field of regard of a lidar orradar device, and/or the spatial distribution of scan lines (e.g., withrespect to elevation angle) produced by such a device, may be adjustedto focus on particular types of objects, particular groupings ofobjects, particular types of areas in the environment (e.g., the roadimmediately ahead of the vehicle, the horizon ahead of the vehicle,etc.), and so on. For some embodiments in which scan line distributionscan be controlled, the sensor may be set to produce scan lines arrangedaccording to a sampling of some continuous mathematical distribution,such as a Gaussian distribution with a peak scan line density thatcovers the desired area of focus, or a multimodal distribution with peakscan line densities in two or more desired areas of focus. Moreover, insome embodiments and/or scenarios, scan lines can be positionedaccording to some arbitrary distribution. For example, scan lines may bepositioned to achieve a desired resolution for each of two or more areasof the environment (e.g., resulting in a 2:4:1 ratio of scan linescovering an area of road immediately ahead of the vehicle, to scan linescovering an area that includes the horizon, to scan lines covering anarea above the horizon).

In some embodiments, the area of focus is determined using a heuristicapproach, as represented by various rules, algorithms, criteria, etc.For example, the area of focus may be determined based on the presenceand positions of “dynamic” objects, or particular types of dynamicobjects, within the environment. The presence, positions and/or types ofthe dynamic objects may be determined using data generated by the sensorthat is being controlled, and/or using data generated by one or moreother sensors on the vehicle. For example, a camera with a wide-angleview of the environment may be used to determine a narrower area offocus for a lidar device. As an alternative example, a lidar device mayinitially be set to have a relatively large field of regard, and laterbe set to focus on (e.g., center a smaller field of regard upon) adynamic object detected in a specific portion of the larger field ofregard.

As another example, the configuration of the road ahead of the vehiclemay be analyzed for purposes of adjusting the field of regard of asensor (e.g., lidar, camera, etc.). In particular, the elevation of thefield of regard (e.g., the elevation of the center of the field ofregard) may be adjusted based on the slope of one or more portions ofthe road. The slope of the road portion currently being traversed by thevehicle may be determined with similar sensors, and/or may be determinedusing one or more other devices (e.g., an IMU). The overall roadconfiguration may be determined using a fusion of multiple sensor types,such as IMU(s), lidar(s) and/or camera(s), and/or using GPS elevationdata, for example. In some embodiments, the position of the field ofregard can also be adjusted in a horizontal/lateral direction based onthe road configuration, e.g., if the road ahead turns to the right orleft. The adjustments to the field of regard may be made with the goalof satisfying one or more predetermined visibility criteria. Forexample, the field of regard may be centered such that, given theslope(s) of the road ahead and the range constraints of the sensor,visibility (i.e., sensing distance) is maximized. If no center positionof the field of regard can result in the sensor having some minimumthreshold of visibility, the speed of the vehicle may be automaticallydecreased. The capability to change at least the elevation of the fieldof regard can avoid scenarios in which the sensor is overly focused onthe road surface just a relatively short distance ahead of the vehicle(when driving downhill), or overly focused on the sky (when drivinguphill), for example. The vertical and/or horizontal adjustments to thefield of regard may occur by controlling the orientation of one or morecomponents within the sensor (e.g., one or more mirrors within a lidardevice), or in another suitable manner (e.g., by mechanically adjustingthe vertical and/or horizontal orientation of the entire sensor).

Other heuristic approaches are also possible, instead of, or in additionto, the approaches described above. For example, the area of focus maybe set based on the position of the horizon relative to the vehicle, theposition of a nearest or furthest object from the vehicle (irrespectiveof whether it is a dynamic object), a level of uncertainty with respectto the classification of a particular object, and/or one or more otherfactors.

In some embodiments, a machine learning based model is trained tocontrol one or more sensor parameters. The model may be trained usingany of various types of learning, such as supervised learning,reinforcement learning, or evolutionary algorithms, and may be trainedusing real-world data and/or data generated in a simulated environment.The model may be an attention model that is trained to direct the focusof one or more sensors to particular areas (e.g., by adjusting the sizeand/or center of a field of regard, a scan line distribution, etc.). Forembodiments utilizing an attention model, the model may be trained todetermine where to “look” within the environment. Such training may usesets of real or simulated sensor data that have been labeled accordingto “correct” outputs of one or more perception functions (e.g.,segmentation and/or classification). By way of this training, theattention model may learn to iteratively focus on different salientregions of the vehicle's environment, with the intelligent choice ofsalient regions helping the attention model to better understand thestate of the environment and/or what is happening in the environment.Alternatively, an attention model may be trained using other techniques,such as supervised learning with labels that correspond to the visualfocus of expert human drivers. In some embodiments utilizing machinelearning, the area of focus for one or more sensors is initially setusing a heuristic approach (e.g., based on the positions of dynamicobjects, the position of the horizon, uncertainty of classification,and/or any of the other heuristic approaches described above orelsewhere herein), and then refined using the learning-based portion ofthe attention model. In some embodiments, the model is not an attentionmodel, and instead controls parameters that are unrelated (or onlytangentially related) to the area of focus. For example, the model maylearn to adjust a camera exposure setting when lighting patterns and/orother factors indicate that the sun is about to reveal itself frombehind a building or cloud.

Other techniques described herein relate not to the control of vehiclesensors, but rather to the processing of data generated by such sensors.In one embodiment, for example, the perception component is configuredto deal with sensor data corresponding to different sensor parametersettings (e.g., different scan line distributions, different exposuresettings, etc.). Thus, the perception component data may be able tohandle data generated by differently configured sensors, and/or datagenerated by a single sensor that is configured differently at differenttimes. Precisely which portion(s) of the perception component is/aretrained may vary depending on the embodiment. For example, a neuralnetwork of a segmentation module, a neural network of a classificationmodule, or a single neural network that jointly performs bothsegmentation and classification, may be trained to handle differentsettings of a sensor parameter (or different settings of a combinationof sensor parameters).

In one embodiment, the training of the neural network(s) is conditionedon the specific sensor parameter setting that corresponds to eachdifferent set of (real or simulated) sensor data. That is, the trainingdata may include not only various sets of sensor data, but alsoindications of which sets of sensor data correspond to which sensorparameter settings. Alternatively, a different neural network may beseparately trained for each parameter setting of interest (e.g., a firstneural network trained to handle a first scan line distribution, asecond neural network trained to handle a second scan line distribution,etc.). In either embodiment, the perception component may operate byreceiving as inputs not only sensor data but also indications of thecurrent sensor parameter setting.

In some embodiments, the perception component instead uses othertechniques to handle different sensor parameter settings. For differentscan line distributions (e.g., uniform distributions, Gaussiandistributions, arbitrary distributions such as the 2:4:1 ratiodistribution discussed above, etc.), for example, the perceptioncomponent may use interpolation techniques, such as transforming datafrom a camera that has a higher resolution than the sensor thatgenerated the point cloud, constructing a three-dimensional mesh fromthe point cloud, or using two-dimensional (e.g., elevation and azimuthangle) distances for thresholding and weighting of an interpolationfunction. Alternatively, the perception component may handle differentscan line distributions by constructing voxel grids from point cloudportions, where the parameters (e.g., leaf size) of the voxel grid aredetermined/set dynamically based on object type/class.

In the discussion below, an example sensor control architecture forcontrolling a vehicle sensor based on dynamic objects in the vehicle'senvironment will first be discussed, with reference to FIG. 1. Becausemany of the architectures and techniques discussed herein may utilizelidar sensors, example lidar systems are then discussed with referenceto FIGS. 2-5. An example self-driving control architecture, which maymake use of any of the sensor control architectures discussed herein, isthen described with reference to FIG. 6. Thereafter, an example sensorcontrol architecture for controlling sensor (e.g., lidar) scan linedistributions, and various examples of different scan linedistributions, are discussed with reference to FIGS. 7 and 8. An examplesensor control architecture utilizing a trained attention model is thendiscussed with reference to FIG. 9, and scenarios relating to the use ofan attention model are discussed with reference FIGS. 10 and 11. Exampleperception components that may be utilized to handle different sensorparameter settings are then discussed with reference to FIGS. 12-14.Next, an example computing system capable of implementing one or more ofthe software architectures and/or perception components described hereinis discussed with reference to FIG. 15. Finally, example methodsrelating to particular software architectures or perception componentsdescribed herein are discussed with reference to the flow diagrams ofFIGS. 16-24.

Example Architecture for Controlling Sensor Parameter(s) Based onDynamic Objects

FIG. 1 illustrates an example, software-based, sensor controlarchitecture 100, which is used to dynamically control one or moreparameters of one or more of sensors 102. The sensors 102 may beutilized by an autonomous vehicle (e.g., to make intelligent drivingdecisions based on the vehicle's current environment), or by anon-autonomous vehicle for other purposes (e.g., to collect datapertaining to a particular driving trip). As the term is used herein, an“autonomous” or “self-driving” vehicle is a vehicle configured to senseits environment and navigate or drive with no human input, with littlehuman input, with optional human input, and/or withcircumstance-specific human input. For example, an autonomous vehiclemay be configured to drive to any suitable location and control orperform all safety-critical functions (e.g., driving, steering, braking,parking) for the entire trip, with the driver not being expected (oreven able) to control the vehicle at any time. As another example, anautonomous vehicle may allow a driver to safely turn his or herattention away from driving tasks in particular environments (e.g., onfreeways) and/or in particular driving modes.

An autonomous vehicle may be configured to drive with a human driverpresent in the vehicle, or configured to drive with no human driverpresent. As an example, an autonomous vehicle may include a driver'sseat with associated controls (e.g., steering wheel, accelerator pedal,and brake pedal), and the vehicle may be configured to drive with no oneseated in the driver's seat or with limited, conditional, or no inputfrom a person seated in the driver's seat. As another example, anautonomous vehicle may not include any driver's seat or associateddriver's controls, with the vehicle performing substantially all drivingfunctions (e.g., driving, steering, braking, parking, and navigating) atall times without human input (e.g., the vehicle may be configured totransport human passengers or cargo without a driver present in thevehicle). As another example, an autonomous vehicle may be configured tooperate without any human passengers (e.g., the vehicle may beconfigured for transportation of cargo without having any humanpassengers onboard the vehicle).

As the term is used herein, a “vehicle” may refer to a mobile machineconfigured to transport people or cargo. For example, a vehicle mayinclude, may take the form of, or may be referred to as a car,automobile, motor vehicle, truck, bus, van, trailer, off-road vehicle,farm vehicle, lawn mower, construction equipment, golf cart, motorhome,taxi, motorcycle, scooter, bicycle, skateboard, train, snowmobile,watercraft (e.g., a ship or boat), aircraft (e.g., a fixed-wingaircraft, helicopter, or dirigible), or spacecraft. In particularembodiments, a vehicle may include an internal combustion engine or anelectric motor that provides propulsion for the vehicle.

As seen in FIG. 1, the vehicle includes N different sensors 102, with Nbeing any suitable integer (e.g., 1, 2, 3, 5, 10, 20, etc.). At least“Sensor 1” of the sensors 102 is configured to sense the environment ofthe autonomous vehicle by physically interacting with the environment insome way, such as transmitting and receiving lasers that reflect off ofobjects in the environment (e.g., if the sensor is a lidar device),transmitting and receiving acoustic signals that reflect off of objectsin the environment (e.g., if the sensor is a radar device), simplyreceiving light waves generated or reflected from different areas of theenvironment (e.g., if the sensor is a camera), and so on. Depending onthe embodiment, all of the sensors 102 may be configured to senseportions of the environment, or one or more of the sensors 102 may notphysically interact with the external environment (e.g., if one of thesensors 102 is an inertial measurement unit (IMU)). The sensors 102 mayall be of the same type, or may include a number of different sensortypes (e.g., multiple lidar devices with different viewing perspectives,and/or a combination of lidar, camera, radar, and thermal imagingdevices, etc.).

The data generated by the sensors 102 is input to a perception component104 of the sensor control architecture 100, and is processed by theperception component 104 to generate perception signals 106 descriptiveof a current state of the vehicle's environment. It is understood thatthe term “current” may actually refer to a very short time prior to thegeneration of any given perception signals 106, e.g., due to the shortprocessing delay introduced by the perception component 104 and otherfactors. To generate the perception signals 106, the perceptioncomponent 104 may include a segmentation module 110, a classificationmodule 112 and a tracking module 114.

The segmentation module 110 is generally configured to identify distinctobjects within the environment, as represented by the sensor data (or aportion of the sensor data). Depending on the embodiment and/orscenario, the segmentation task may be performed separately for each ofa number of different types of sensor data (e.g., the segmentationmodule 110 may include a number of modules operating in parallel), ormay be performed jointly on a fusion of multiple types of sensor data.In some embodiments where lidar devices are used, the segmentationmodule 110 analyzes point cloud frames to identify subsets of pointswithin each frame that correspond to probable physical objects in theenvironment. In other embodiments, the segmentation module 110 jointlyanalyzes lidar point cloud frames in conjunction with camera (and/orother) image frames to identify objects in the environment. Examples oflidar devices/systems and point clouds are discussed in further detailbelow, with reference to FIGS. 2-5. Other suitable techniques, and/ordata from other suitable sensor types, may also be used to identifyobjects. As used herein, references to different or distinct “objects”may encompass physical things that are entirely disconnected (e.g., withtwo vehicles being two different “objects”), as well as physical thingsthat are connected or partially connected (e.g., with a vehicle being afirst “object” and the vehicle's hitched trailer being a second“object”).

The segmentation module 110 may use predetermined rules or algorithms toidentify objects. For example, the segmentation module 110 may identifyas distinct objects, within a point cloud, any clusters of points thatmeet certain criteria (e.g., having no more than a certain maximumdistance between all points in the cluster, etc.). Alternatively, thesegmentation module 110 may utilize a neural network that has beentrained to identify distinct objects within the environment (e.g., usingsupervised learning with manually generated labels for different objectswithin test data point clouds, etc.), or another suitable type ofmachine learning based model. Example operation of the segmentationmodule 110 is discussed in more detail below in FIG. 5B, for anembodiment in which the perception component 104 processes point clouddata.

The classification module 112 is generally configured to determineclasses (labels, categories, etc.) for different objects that have beenidentified by the segmentation module 110. Like the segmentation module110, the classification module 112 may perform classification separatelyfor different sets of the sensor data (e.g., the classification module112 may include a number of modules operating in parallel), or mayclassify objects based on a fusion of data from multiple sensors, etc.Moreover, and also similar to the segmentation module 110, theclassification module 112 may execute predetermined rules or algorithmsto classify objects, use a neural network that has been trained toclassify identified objects within the environment (e.g., usingsupervised learning with manually generated labels for different pointcloud representations of distinct objects, etc.), or use anothersuitable machine learning based model to classify objects. Exampleoperation of the classification module 112 is discussed in more detailbelow in FIG. 5B, for an embodiment in which the perception component104 processes point cloud data.

The tracking module 114 is generally configured to track distinctobjects over time (e.g., across multiple lidar point cloud or cameraimage frames). The tracked objects are generally objects that have beenidentified by the segmentation module 110, but may or may not be objectsthat were classified by the classification module 112, depending on theembodiment and/or scenario. The segmentation module 110 may assignidentifiers to identified objects, and the tracking module 114 mayassociate existing identifiers with specific objects where appropriate(e.g., for lidar data, by associating the same identifier with differentclusters of points, at different locations, in successive point cloudframes). Like the segmentation module 110 and the classification module112, the tracking module 114 may perform separate object tracking basedon different sets of the sensor data (e.g., the tracking module 114 mayinclude a number of modules operating in parallel), or may track objectsbased on a fusion of data from multiple sensors. Moreover, and alsosimilar to the segmentation module 110 and the classification module112, the tracking module 114 may execute predetermined rules oralgorithms to track objects, may use a neural network that has beentrained to track identified (and possibly classified) objects within theenvironment (e.g., using supervised learning with manually generatedlabels for different pairs or sets of point cloud frames, etc.), oranother suitable machine learning model to track objects.

Because the blocks of FIG. 1 (and various other figures describedherein) depict a software architecture rather than physical components,it is understood that, when any reference is made herein to a particularneural network or other software architecture component being “trained,”or to the role of any software architecture component (e.g., sensors102) in conducting such training, the operations or procedures describedmay have occurred on a different computing system (e.g., usingspecialized development software). Thus, for example, neural networks ofthe segmentation module 110, classification module 112 and/or trackingmodule 114 may have been trained on a different computer system beforebeing implemented within any vehicle. Put differently, the components ofthe sensor control architecture 100 may be included in a “final” productwithin a particular vehicle, without that vehicle or its physicalcomponents (sensors 102, etc.) necessarily having been used for anytraining processes.

The sensor control architecture 100 also includes a prediction component120, which processes the perception signals 106 to generate predictionsignals 122 descriptive of one or more predicted future states of thevehicle's environment. For a given object, for example, the predictioncomponent 120 may analyze the type/class of the object (as determined bythe classification module 112) along with the recent tracked movement ofthe object (as determined by the tracking module 114) to predict one ormore future positions of the object. As a relatively simple example, theprediction component 120 may assume that any moving objects willcontinue to travel with no change to their current direction and speed,possibly taking into account first- or higher-order derivatives tobetter track objects that have continuously changing directions, objectsthat are accelerating, and so on. In some embodiments, the predictioncomponent 120 also predicts movement of objects based on more complexbehaviors. For example, the prediction component 120 may assume that anobject that has been classified as another vehicle will follow rules ofthe road (e.g., stop when approaching a red light), and will react in acertain way to other dynamic objects (e.g., attempt to maintain somesafe distance from other vehicles). The prediction component 120 mayinherently account for such behaviors by utilizing a neural network orother suitable machine learning model, for example. In some embodiments,the prediction component 120 may be omitted from the sensor controlarchitecture 100 (e.g., if the vehicle does not perform any predictionof future environment states, or if the vehicle does perform predictionbut predicted environment states are not used to control any sensors).

In some embodiments, the perception signals 106 include datarepresenting “occupancy grids” (e.g., one grid per T milliseconds), witheach occupancy grid indicating object positions (and possibly objectboundaries, orientations, etc.) within an overhead view of theautonomous vehicle's environment. Within the occupancy grid, each “cell”(e.g., pixel) may be associated with a particular class as determined bythe classification module 114, possibly with an “unknown” class forcertain pixels that were not successfully classified. Similarly, theprediction signals 122 may include, for each such grid generated by theperception component 104, one or more “future occupancy grids” thatindicate predicted object positions, boundaries and/or orientations atone or more future times (e.g., 1, 2 and 5 seconds ahead). In otherembodiments, the sensor control architecture 100 does not generate orutilize occupancy grids.

The perception signals 106 and (in some embodiments) prediction signals122 are input to a sensor control component 130, which processes thesignals 106, 122 to generate sensor control signals 132 that control oneor more parameters of at least one of the sensors 102 (including atleast a parameter of “Sensor 1”). In particular, the sensor controlcomponent 130 attempts to direct the focus of one or more of the sensors102 based on the presence, positions, and/or types of “dynamic” objectswithin the vehicle's environment. To this end, the sensor controlcomponent 130 includes a dynamic object detector 134 in communicationwith a parameter adjustment module 136. The dynamic object detector 134may detect the presence of dynamic objects based on the classificationof those objects by the classification module 112. For example, thedynamic object detector 134 may access a locally-stored list of classesthat correspond to dynamic objects (e.g., “vehicle,” “cyclist,”“pedestrian,” “deer,” etc.), and may flag a particular object as“dynamic” if the classification module 112 labeled that object accordingto one of the dynamic object classes.

Alternatively, or in addition, the dynamic object detector 134 maydetect the presence of dynamic objects based on observed behaviors ofthe objects. For example, the dynamic object detector 134 may access alocally-stored set of rules or algorithms that determine whether anobject being tracked by the tracking module 114 is to be flagged as a“dynamic” object. As a more specific example, the dynamic objectdetector 134 may flag an object as “dynamic” if data from the trackingmodule 114 (within the perception signals 106) indicates that the objecthas moved in any direction (or in any lateral direction, etc.) fasterthan a threshold speed (e.g., 0.25 meters per second, 0.5 meters persecond, etc.). In some embodiments, the dynamic object detector 134includes a neural network that is trained (e.g., using manually labeledtraining datasets) to identify dynamic objects based on the perceptionsignals 106 and/or the prediction signals 122.

In still other embodiments, the dynamic object detector 134 detects thepresence of dynamic objects based on sensor data from one or more of thesensors 102, prior to processing of the sensor data by the perceptioncomponent 104 (e.g., based on raw sensor data from one or more of thesensors 102). For example, the dynamic object detector 134 may apply oneor more rules or algorithms, or use a machine learning model, todirectly identify dynamic objects within point cloud frames from one ofthe sensors 102. In effect, in some embodiments, this may be viewed asthe dynamic object detector 134 implementing a more simplistic versionof the functionality of segmentation module 110, classification module112, and/or tracking module 114, separate from the operations of theperception component 104. For example, the dynamic object detector 134may use simple heuristics to identify a “clump” or “cluster” of pointsthat is likely to correspond, roughly, to a single object (e.g., whereyou have greater than a threshold number of points all within athreshold distance of each other when the points are represented inthree-dimensional space), and to determine that the clump or cluster ismoving over time (e.g., by calculating the movement of centroids ofdifferent clumps or clusters across multiple frames, and assuming thatthe centroids of clusters in adjacent frames belong to the same objectif certain criteria are met). Thus, as used herein (unless the contextclearly denotes a different meaning), references to the identificationor detection of a “dynamic object” do not necessarily mean that theperception component 104 has already identified, classified, or trackedthe object.

The parameter adjustment module 136 determines the setting forparameter(s) of the controlled sensor(s) (among sensors 102) based onthe dynamic objects detected by the dynamic object detector 134. Inparticular, the parameter adjustment module 136 determines values of oneor more parameters that set the area of focus of the controlledsensor(s). Generally, the controlled parameter(s) is/are parameters thataffect which area/portion of the vehicle environment is sensed by aparticular sensor. For example, the parameter adjustment module 136 maydetermine values that set the horizontal and/or vertical field of regardof the controlled sensor(s) (e.g., the range of azimuthal and/orelevation angles covered by the field of regard), the center of thefield of regard (e.g., by mechanically moving the entire sensor, oradjusting mirrors that move the center of the field of regard), and/orthe spatial distribution of scan lines produced by the sensor(s).Example fields of regard and scan line distributions are discussed inmore detail below, with reference to FIGS. 2-5, 7 and 8. In someembodiments, the controlled sensor parameter(s) affect not only the areaof focus for a sensor, but also the manner in which a given area of thevehicle environment is sensed. For example, the parameter adjustmentmodule 136 may control the frame/refresh rate of the sensor, theresolution (e.g., number of points per point cloud frame) of the sensor,and so on.

The parameter adjustment module 136 may determine a desired area offocus for a controlled sensor based on current positions of one or moredynamic objects (e.g., using the perception signals 106), and/or basedon predicted/expected positions of the dynamic object(s) (e.g., usingthe prediction signals 122). For example, the parameter adjustmentmodule 136 may set lidar device parameters such that the field of regardof the lidar device is centered on the current position of a dynamicobject, and possibly also “zoomed in” on that object (e.g., by reducingthe horizontal and vertical field of regard without necessarily reducingthe number of points in each point cloud frame). Alternatively, theparameter adjustment module 136 may set lidar device parameters suchthat the field of regard of the lidar device is centered on anexpected/predicted position of the dynamic object at a time in the nearfuture (e.g., 0.5 seconds in the future, 1 second in the future, etc.).

The parameter adjustment module 136 may determine the desired area offocus based on a single dynamic object, based on the class of a dynamicobject, and/or based on an area of high density of multiple dynamicobjects or dynamic object classes. For example, the parameter adjustmentmodule 136 may identify an area of focus as being an area that containsa pedestrian or vehicle, an area that includes at least two pedestriansor vehicles, an area that includes a highest density of any sort ofdynamic object (as compared to the rest of the sensed environment), etc.The parameter adjustment module 136 may also set the area of focus(e.g., the horizontal and/or vertical field of regard) such thatdetected dynamic objects are entirely included within that area (e.g.,without excluding or “cutting off” a portion of a detected vehicle, or aportion of a detected pedestrian's body, etc.).

As noted above, in some embodiments, a sensor's area of focus is set bychanging a spatial distribution of scan lines for the sensor, instead of(or in addition to) changing the center or size of the sensor's field ofregard. For example, a lidar or radar device may focus on a specificrange of elevation angles within the field of regard—without necessarilychanging the size of the field of regard—by increasing the density ofscan lines covering that range of elevation angles relative to thedensity of scan lines that cover other elevation angles within the fieldof regard. Targeting the focus of a sensor by adjusting the spatialdistribution of the sensor's scan lines is discussed further below withreference to FIGS. 7 and 8.

The dynamic object detector 134 may detect the presence of dynamicobjects using sensor data that was generated based on data from thesensor(s) that is/are being controlled, and/or using sensor data thatwas generated based on data from one or more other sensors of thesensors 102. If the sensor control component 130 only controls “Sensor1,” for example, the dynamic object detector 134 may identify dynamicobjects using perception signals 106 generated based only on data from“Sensor 1,” using perception signals 106 based only on data from any oneor more of “Sensor 2” through “Sensor N,” or using perception signals106 based on both data from “Sensor 1” and data from any one or more of“Sensor 2” through “Sensor N.” Thus, for example, a camera with awide-angle view of the environment may be used to determine a narrowerarea of focus for a lidar device, or a lidar device may initially be setto have a relatively large field of regard, and later be set to focus on(e.g., center a smaller field of regard upon) a dynamic object detectedin a specific portion of the larger field of regard, etc.

In some embodiments, the sensor control component 130 uses one or moreother heuristic techniques to determine an area of focus for one or moreof the sensors 102, in which case the dynamic object detector 134 may bereplaced by a different, suitable module. For example, various heuristicapproaches that involve the slope and/or direction of the road on whichthe vehicle is traveling are described below in connection with FIGS. 10and 11.

As another example of a heuristic technique, the sensor controlcomponent 130 may process the perception signals 106 to determine aposition of the horizon relative to the vehicle, and/or the position ofa furthest object relative to the vehicle, and use one or both positionsto determine an initial area of focus for one or more of the sensors102. The sensor control component 130 may confine the area of focus ofone of the sensors 102 to be entirely within a vertical/elevation rangethat extends from slightly above the horizon to slightly below thefurthest detected object (or furthest dense cluster of point cloudpoints, etc.), for example.

As another example of a heuristic technique, the sensor controlcomponent 130 may process the perception signals 106 to determine aposition of the densest cluster of objects (not necessarily dynamicobjects) in a direction that is generally ahead of the vehicle, and usethat position to determine an area of focus for one or more of thesensors 102. The sensor control component 130 may confine the horizontaland/or vertical extent of the field of regard to focus on the dense areaof objects, for example.

As another example of a heuristic technique, the sensor controlcomponent 130 may process the perception signals 106 to determine thedistance to one or more objects, and may further receive, for eachobject, a classification of the object and a confidence score or othermetric associated with that classification (e.g., as output by theclassification module 112). The sensor control component 130 may thenuse a “weighted” heuristic approach in which the distance to each objectand the confidence metric for that object (and possibly theclassification itself) are used to determine the area of focus. Forexample, the sensor control component 130 may generally try to set thearea of focus to cover objects that are relatively near, and with arelatively high level of classification uncertainty. Focusing in such amanner may help to classify unclassified objects, and may improve safetyin the event that an object cannot be classified. In other embodiments,other types of uncertainty may instead, or also, be used to determinethe area of focus. For example, the sensor control component 130 may setthe area of focus based at least in part on a metric indicating theuncertainty associated with the prediction signals 122, with the sensorcontrol component 130 generally trying to set the area of focus to coverobjects whose future movements cannot be confidently predicted.

As yet another example of a heuristic technique, the sensor controlcomponent 130 may initially set the area of focus for one or more of thesensors 102 to a particular, predetermined elevation range. For example,in embodiments or scenarios where it is useful to identify staticfeatures above road level, such as building or infrastructure features(e.g., for mapping or positioning purposes), the sensor controlcomponent 130 may initially cause one of the sensors 102 (e.g., a lidardevice) to have an initial area of focus that is centered well above thelevel of the horizon.

It is understood that other heuristic techniques are also possible, andthat multiple heuristic techniques may be used in combination, and/ormay be scenario-dependent (e.g., depending upon the initial state of theenvironment as perceived by the perception component 104, or dependingupon user settings, etc.).

Example Lidar Systems

As seen from various examples provided above, sensor data collected by avehicle may in some embodiments include point cloud data that isgenerated by one or more lidar devices or, more generally, a lidarsystem. To provide a better understanding of the types of data that maybe generated by lidar systems, and of the manner in which lidar systemsand devices may function, example lidar systems and point clouds willnow be described with reference to FIGS. 2-5.

Referring first to FIG. 2, a lidar system 200 may be used as at leastone of the sensors 102 of FIG. 1, for example. While various lidarsystem components and characteristics are described herein, it isunderstood that any suitable lidar device(s) or system(s), and/or anyother suitable types of sensors, may provide sensor data for processingusing the software architectures described herein.

The example lidar system 200 may include a light source 210, a mirror215, a scanner 220, a receiver 240, and a controller 250. The lightsource 210 may be, for example, a laser (e.g., a laser diode) that emitslight having a particular operating wavelength in the infrared, visible,or ultraviolet portions of the electromagnetic spectrum. In operation,the light source 210 emits an output beam of light 225 which may becontinuous-wave, pulsed, or modulated in any suitable manner for a givenapplication. The output beam of light 225 is directed downrange toward aremote target 230 located a distance D from the lidar system 200 and atleast partially contained within a field of regard of the system 200.

Once the output beam 225 reaches the downrange target 230, the target230 may scatter or, in some cases, reflect at least a portion of lightfrom the output beam 225, and some of the scattered or reflected lightmay return toward the lidar system 200. In the example of FIG. 5, thescattered or reflected light is represented by input beam 235, whichpasses through the scanner 220, which may be referred to as a beamscanner, optical scanner, or laser scanner. The input beam 235 passesthrough the scanner 220 to the mirror 215, which may be referred to asan overlap mirror, superposition mirror, or beam-combiner mirror. Themirror 215 in turn directs the input beam 235 to the receiver 240.

The input beam 235 may include light from the output beam 225 that isscattered by the target 230, light from the output beam 225 that isreflected by the target 230, or a combination of scattered and reflectedlight from target 230. According to some implementations, the lidarsystem 200 can include an “eye-safe” laser that present little or nopossibility of causing damage to a person's eyes. The input beam 235 maycontain only a relatively small fraction of the light from the outputbeam 225.

The receiver 240 may receive or detect photons from the input beam 235and generate one or more representative signals. For example, thereceiver 240 may generate an output electrical signal 245 that isrepresentative of the input beam 235. The receiver may send theelectrical signal 245 to the controller 250. Depending on theimplementation, the controller 250 may include one or moreinstruction-executing processors, an application-specific integratedcircuit (ASIC), a field-programmable gate array (FPGA), and/or othersuitable circuitry configured to analyze one or more characteristics ofthe electrical signal 245 in order to determine one or morecharacteristics of the target 230, such as its distance downrange fromthe lidar system 200. More particularly, the controller 250 may analyzethe time of flight or phase modulation for the beam of light 225transmitted by the light source 210. If the lidar system 200 measures atime of flight of T (e.g., T representing a round-trip time of flightfor an emitted pulse of light to travel from the lidar system 200 to thetarget 230 and back to the lidar system 200), then the distance D fromthe target 230 to the lidar system 200 may be expressed as D=c·T/2,where c is the speed of light (approximately 3.0×10⁸ m/s).

The distance D from the lidar system 200 is less than or equal to amaximum range R_(MAX) of the lidar system 200. The maximum range R_(MAX)(which also may be referred to as a maximum distance) of a lidar system200 may correspond to the maximum distance over which the lidar system200 is configured to sense or identify targets that appear in a field ofregard of the lidar system 200. The maximum range of lidar system 200may be any suitable distance, such as 50 m, 200 m, 500 m, or 1 km, forexample.

In some implementations, the light source 210, the scanner 220, and thereceiver 240 may be packaged together within a single housing 255, whichmay be a box, case, or enclosure that holds or contains all or part ofthe lidar system 200. The housing 255 includes a window 257 throughwhich the beams 225 and 235 pass. The controller 250 may reside withinthe same housing 255 as the components 210, 220, and 240, or thecontroller 250 may reside outside of the housing 255. In one embodiment,for example, the controller 250 may instead reside within, or partiallywithin, the perception component 104 of the sensor control architecture100 shown in FIG. 1. In some implementations, the housing 255 includesmultiple lidar sensors, each including a respective scanner and areceiver. Depending on the particular implementation, each of themultiple sensors can include a separate light source or a common lightsource. The multiple sensors can be configured to cover non-overlappingadjacent fields of regard or partially overlapping fields of regard, forexample, depending on the implementation.

With continued reference to FIG. 2, the output beam 225 and input beam235 may be substantially coaxial. In other words, the output beam 225and input beam 235 may at least partially overlap or share a commonpropagation axis, so that the input beam 235 and the output beam 225travel along substantially the same optical path (albeit in oppositedirections). As the lidar system 200 scans the output beam 225 across afield of regard, the input beam 235 may follow along with the outputbeam 225, so that the coaxial relationship between the two beams ismaintained.

Generally speaking, the scanner 220 steers the output beam 225 in one ormore directions downrange. To accomplish this, the scanner 220 mayinclude one or more scanning mirrors and one or more actuators drivingthe mirrors to rotate, tilt, pivot, or move the mirrors in an angularmanner about one or more axes, for example. While FIG. 2 depicts only asingle mirror 215, the lidar system 200 may include any suitable numberof flat or curved mirrors (e.g., concave, convex, or parabolic mirrors)to steer or focus the output beam 225 or the input beam 235. Forexample, the first mirror of the scanner may scan the output beam 225along a first direction, and the second mirror may scan the output beam225 along a second direction that is substantially orthogonal to thefirst direction.

A “field of regard” of the lidar system 200 may refer to an area,region, or angular range over which the lidar system 200 may beconfigured to scan or capture distance information. When the lidarsystem 200 scans the output beam 225 within a 30-degree scanning range,for example, the lidar system 200 may be referred to as having a30-degree angular field of regard. The scanner 220 may be configured toscan the output beam 225 horizontally and vertically, and the field ofregard of the lidar system 200 may have a particular angular width alongthe horizontal direction and another particular angular width along thevertical direction. For example, the lidar system 200 may have ahorizontal field of regard of 10° to 120° and a vertical field of regardof 2° to 45°.

The one or more scanning mirrors of the scanner 220 may becommunicatively coupled to the controller 250, which may control thescanning mirror(s) so as to guide the output beam 225 in a desireddirection downrange or along a desired scan pattern. In general, a scan(or scan line) pattern may refer to a pattern or path along which theoutput beam 225 is directed. The lidar system 200 can use the scanpattern to generate a point cloud with points or “pixels” thatsubstantially cover the field of regard. The pixels may be approximatelyevenly distributed across the field of regard, or distributed accordingto a particular non-uniform distribution.

In operation, the light source 210 may emit pulses of light which thescanner 220 scans across a field of regard of the lidar system 200. Thetarget 230 may scatter one or more of the emitted pulses, and thereceiver 240 may detect at least a portion of the pulses of lightscattered by the target 230. The receiver 240 may receive or detect atleast a portion of the input beam 235 and produce an electrical signalthat corresponds to the input beam 235. The controller 250 may beelectrically coupled or otherwise communicatively coupled to one or moreof the light source 210, the scanner 220, and the receiver 240. Thecontroller 250 may provide instructions, a control signal, or a triggersignal to the light source 210 indicating when the light source 210should produce optical pulses, and possibly characteristics (e.g.,duration, period, peak power, wavelength, etc.) of the pulses. Thecontroller 250 may also determine a time-of-flight value for an opticalpulse based on timing information associated with when the pulse wasemitted by light source 210 and when a portion of the pulse (e.g., theinput beam 235) was detected or received by the receiver 240.

As indicated above, the lidar system 200 may be used to determine thedistance to one or more downrange targets 230. By scanning the lidarsystem 200 across a field of regard, the system can be used to map thedistance to a number of points within the field of regard. Each of thesedepth-mapped points may be referred to as a pixel or a voxel. Acollection of pixels captured in succession (which may be referred to asa depth map, a point cloud, or a point cloud frame) may be rendered asan image or may be analyzed to identify or detect objects or todetermine a shape or distance of objects within the field of regard. Forexample, a depth map may cover a field of regard that extends 60°horizontally and 15° vertically, and the depth map may include a frameof 100-2000 pixels in the horizontal direction by 4-400 pixels in thevertical direction.

The lidar system 200 may be configured to repeatedly capture or generatepoint clouds of a field of regard at any suitable frame rate betweenapproximately 0.1 frames per second (FPS) and approximately 1,000 FPS,for example. The point cloud frame rate may be substantially fixed ordynamically adjustable, depending on the implementation. In general, thelidar system 200 can use a slower frame rate (e.g., 1 Hz) to capture oneor more high-resolution point clouds, and use a faster frame rate (e.g.,10 Hz) to rapidly capture multiple lower-resolution point clouds.

The field of regard of the lidar system 200 can overlap, encompass, orenclose at least a portion of the target 230, which may include all orpart of an object that is moving or stationary relative to lidar system200. For example, the target 230 may include all or a portion of aperson, vehicle, motorcycle, truck, train, bicycle, wheelchair,pedestrian, animal, road sign, traffic light, lane marking, road-surfacemarking, parking space, pylon, guard rail, traffic barrier, pothole,railroad crossing, obstacle in or near a road, curb, stopped vehicle onor beside a road, utility pole, house, building, trash can, mailbox,tree, any other suitable object, or any suitable combination of all orpart of two or more objects.

FIG. 3 illustrates an example scan pattern 260 which the lidar system200 of FIG. 2 may produce. In particular, the lidar system 200 may beconfigured to scan the output optical beam 225 along the scan pattern260. In some implementations, the scan pattern 260 corresponds to a scanacross any suitable field of regard having any suitable horizontal fieldof regard (FOR_(H)) and any suitable vertical field of regard (FOR_(V)).For example, a certain scan pattern may have a field of regardrepresented by angular dimensions (e.g., FOR_(H)×FOR_(V)) 40°×30°,90°×40°, or 60°×15°. While FIG. 3 depicts a “zig-zag” pattern 260, otherimplementations may instead employ other patterns (e.g., parallel,horizontal scan lines), and/or other patterns may be employed inspecific circumstances.

In the example implementation and/or scenario of FIG. 3, reference line262 represents a center of the field of regard of scan pattern 260. InFIG. 3, if the scan pattern 260 has a 60°×15° field of regard, then thescan pattern 260 covers a ±30° horizontal range with respect toreference line 262 and a ±7.5° vertical range with respect to referenceline 262. An azimuth (which may be referred to as an azimuth angle) mayrepresent a horizontal angle with respect to the reference line 262, andan altitude (which may be referred to as an altitude angle, elevation,or elevation angle) may represent a vertical angle with respect to thereference line 262.

The scan pattern 260 may include multiple points or pixels 264, and eachpixel 264 may be associated with one or more laser pulses and one ormore corresponding distance measurements. A cycle of scan pattern 260may include a total of P_(x)×P_(y) pixels 264 (e.g., a two-dimensionaldistribution of P_(x) by P_(y) pixels). The number of pixels 264 along ahorizontal direction may be referred to as a horizontal resolution ofthe scan pattern 260, and the number of pixels 264 along a verticaldirection may be referred to as a vertical resolution of the scanpattern 260.

Each pixel 264 may be associated with a distance/depth (e.g., a distanceto a portion of a target 230 from which the corresponding laser pulsewas scattered) and one or more angular values. As an example, the pixel264 may be associated with a distance value and two angular values(e.g., an azimuth and altitude) that represent the angular location ofthe pixel 264 with respect to the lidar system 200. A distance to aportion of the target 230 may be determined based at least in part on atime-of-flight measurement for a corresponding pulse. More generally,each point or pixel 264 may be associated with one or more parametervalues in addition to its two angular values. For example, each point orpixel 264 may be associated with a depth (distance) value, an intensityvalue as measured from the received light pulse, and/or one or moreother parameter values, in addition to the angular values of that pointor pixel.

An angular value (e.g., an azimuth or altitude) may correspond to anangle (e.g., relative to reference line 262) of the output beam 225(e.g., when a corresponding pulse is emitted from lidar system 200) oran angle of the input beam 235 (e.g., when an input signal is receivedby lidar system 200). In some implementations, the lidar system 200determines an angular value based at least in part on a position of acomponent of the scanner 220. For example, an azimuth or altitude valueassociated with the pixel 264 may be determined from an angular positionof one or more corresponding scanning mirrors of the scanner 220.

FIG. 4A illustrates an example vehicle 300 with a lidar system 302. Thelidar system 302 includes a laser 310 with multiple sensor heads312A-312D coupled to the laser 310 via multiple laser-sensor links 314.Each of the sensor heads 312 may include some or all of the componentsof the lidar system 200 illustrated in FIG. 2.

Each of the laser-sensor links 314 may include one or more optical linksand/or one or more electrical links. The sensor heads 312 in FIG. 4A arepositioned or oriented to provide a greater than 30-degree view of anenvironment around the vehicle. More generally, a lidar system withmultiple sensor heads may provide a horizontal field of regard around avehicle of approximately 30°, 45°, 60°, 90°, 120°, 180°, 270°, or 360°.Each of the sensor heads 312 may be attached to, or incorporated into, abumper, fender, grill, side panel, spoiler, roof, headlight assembly,taillight assembly, rear-view mirror assembly, hood, trunk, window, orany other suitable part of the vehicle.

In the example of FIG. 4A, four sensor heads 312 are positioned at ornear the four corners of the vehicle (e.g., each of the sensor heads 312may be incorporated into a light assembly, side panel, bumper, orfender), and the laser 310 may be located within the vehicle 300 (e.g.,in or near the trunk). The four sensor heads 312 may each provide a 90°to 120° horizontal field of regard (FOR), and the four sensor heads 312may be oriented so that together they provide a complete 360-degree viewaround the vehicle. As another example, the lidar system 302 may includesix sensor heads 312 positioned on or around the vehicle 300, where eachof the sensor heads 312 provides a 60° to 90° horizontal FOR. As anotherexample, the lidar system 302 may include eight sensor heads 312, andeach of the sensor heads 312 may provide a 45° to 60° horizontal FOR. Asyet another example, the lidar system 302 may include six sensor heads312, where each of the sensor heads 312 provides a 70° horizontal FORwith an overlap between adjacent FORs of approximately 10°. As anotherexample, the lidar system 302 may include two sensor heads 312 whichtogether provide a forward-facing horizontal FOR of greater than orequal to 30°.

Data from each of the sensor heads 312 may be combined or stitchedtogether to generate a point cloud that covers a greater than or equalto 30-degree horizontal view around a vehicle. For example, the laser310 may include a controller or processor that receives data from eachof the sensor heads 312 (e.g., via a corresponding electrical link 320)and processes the received data to construct a point cloud covering a360-degree horizontal view around a vehicle or to determine distances toone or more targets. The point cloud or information from the point cloudmay be provided to a vehicle controller 322 via a correspondingelectrical, optical, or radio link 320. The vehicle controller 322 mayinclude one or more CPUs, GPUs, and a non-transitory memory withpersistent components (e.g., flash memory, an optical disk) and/ornon-persistent components (e.g., RAM).

In some implementations, the point cloud is generated by combining datafrom each of the multiple sensor heads 312 at a controller includedwithin the laser 310, and is provided to the vehicle controller 322. Inother implementations, each of the sensor heads 312 includes acontroller or processor that constructs a point cloud for a portion ofthe 360-degree horizontal view around the vehicle and provides therespective point cloud to the vehicle controller 322. The vehiclecontroller 322 then combines or stitches together the points clouds fromthe respective sensor heads 312 to construct a combined point cloudcovering a 360-degree horizontal view. Still further, the vehiclecontroller 322 in some implementations communicates with a remote serverto process point cloud data.

In any event, the vehicle 300 may be an autonomous vehicle where thevehicle controller 322 provides control signals to various components330 within the vehicle 350 to maneuver and otherwise control operationof the vehicle 350. The components 330 are depicted in an expanded viewin FIG. 4A for ease of illustration only. The components 330 may includean accelerator 340, brakes 342, a vehicle engine 344, a steeringmechanism 346, lights 348 such as brake lights, head lights, reverselights, emergency lights, etc., a gear selector 350, and/or othersuitable components that effectuate and control movement of the vehicle300. The gear selector 350 may include the park, reverse, neutral, drivegears, etc. Each of the components 330 may include an interface viawhich the component receives commands from the vehicle controller 322such as “increase speed,” “decrease speed,” “turn left 5 degrees,”“activate left turn signal,” etc. and, in some cases, provides feedbackto the vehicle controller 322.

In some implementations, the vehicle controller 322 receives point clouddata from the sensor heads 312 via the link 320 and analyzes thereceived point cloud data, using any one or more of the aggregate orindividual SDCAs disclosed herein, to sense or identify targets 230 (seeFIG. 2) and their respective locations, distances, speeds, shapes,sizes, type of target (e.g., vehicle, human, tree, animal), etc. Thevehicle controller 322 then provides control signals via the link 320 tothe components 330 to control operation of the vehicle based on theanalyzed information.

In addition to the lidar system 302, the vehicle 300 may also beequipped with other sensors such a camera, a thermal imager, aconventional radar (none illustrated to avoid clutter), etc. The sensorscan provide additional data to the vehicle controller 322 via wired orwireless communication links. Further, the vehicle 300 in an exampleimplementation includes a microphone array operating as a part of anacoustic source localization system configured to determine sources ofsounds.

As another example, FIG. 4B illustrates a vehicle 360 in which a laser370 is optically coupled to six sensor heads 372, each of which may besimilar to one of the sensor heads 312 of FIG. 4A. The sensor heads 372Aand 372G are disposed at the front of the hood, the sensor heads 372Band 372F are disposed in the side view mirrors, and the sensor heads372C-E are disposed on the trunk. In particular, the sensor head 372D isoriented to face backward relative to the orientation of the vehicle360, and the sensor heads 372C-E are oriented at approximately 45degrees relative to the axis of orientation of the sensor head 372D.

FIG. 5A depicts an example real-world driving environment 380, and FIG.5B depicts an example point cloud 390 that is generated by a lidarsystem scanning the environment 380 (e.g., the lidar system 200 of FIGS.2 and 3 or the lidar system 302 of FIG. 4A). As seen in FIG. 5A, theenvironment 380 includes a highway with a median wall that divides thetwo directions of traffic, with multiple lanes in each direction. Thepoint cloud 390 of FIG. 5B corresponds to an example embodiment in whichtwo lidar devices each capture a roughly 60 degree horizontal field ofregard, and in which the two fields of regard have a small overlap 392(e.g., two or three degrees of overlap). The point cloud 390 may havebeen generated using the sensor heads 312A and 312D of FIG. 4A, or thesensor heads 372A and 372G of FIG. 4B, for example. While depicted as avisual image in FIG. 5B, it is understood that, in some embodiments, thepoint cloud 390 is not actually rendered or displayed at any time.

As seen in FIG. 5B, the point cloud 390 depicts a ground plane 394(here, the road surface) as a number of substantially continuous scanlines, and also depicts, above the ground plane 394, a number of objects396. For clarity, only a small number of the objects shown in FIG. 5Bare labeled with a reference number. Referring back to FIG. 1, distinctones of the objects 396 within the point cloud 390 may be identified bythe segmentation module 110. For example, the segmentation module 110may detect substantial gaps and/or other discontinuities in the scanlines of the ground plane 394, and identify groups of points in thevicinity of those discontinuities as discrete objects. The segmentationmodule 110 may determine which points belong to the same object usingany suitable rules, algorithms or models. Once the objects 396 areidentified, the classification module 112 of FIG. 1 may attempt toclassify the objects, and the tracking module 114 of FIG. 1 may attemptto track the classified objects (and, in some embodiments/scenarios,unclassified objects) across future point clouds similar to point cloud390 (i.e., across multiple point cloud frames).

For various reasons, it may be more difficult for the segmentationmodule 110 to identify certain objects 396, and/or for theclassification module 112 to classify certain objects 396, within thepoint cloud 390. As can be seen in FIG. 5B, for example, a median wall396A may be relativity easy to identify and classify due to the highdensity of points as well as the “shadow” (i.e., absence or relativescarcity of points) that the wall 396A creates. A truck 396B may also berelatively easy to identify as an object, due to the high density ofpoints (and possibly the shape of its shadow), but may not be as easy toclassify due to the fact that large portions of the truck 396B arehidden within the lidar shadow. The vehicle 396C may be relatively easyto identify as an object, but may be more difficult to classify due tothe lack of points within the lidar shadow created by the median wall396A (i.e., along the lower portions of the vehicle 396C). The vehicle396D may be more difficult to identify as a distinct object due to thescarcity of points at the greater distance from the autonomous vehicle,as well as the close proximity between the points corresponding to thevehicle 396D and points of other, nearby objects. Still other objectsmay be difficult to identify, classify and/or track due to their smallsize and/or low profile. For example, while not shown in FIG. 5B, thesegmentation module 110 may identify (and the classification module 112may classify) lane markings within the point cloud 390. The lanemarkings may appear as small but abrupt deviations in the path of thescan lines, for example, with those deviations collectively forming aline pattern that aligns with the direction of travel of the vehicle(e.g., approximately normal to the curve of the scan lines).

Despite such difficulties, the segmentation module 110, classificationmodule 112 and/or tracking module 114 may use techniques that makeobject identification, classification and/or tracking highly accurateacross a very wide range of scenarios, with scarce or otherwisesuboptimal point cloud representations of objects. For example, thesegmentation module 110, classification module 112 and/or trackingmodule 114 may include neural networks that were trained using data(e.g., manually labeled scenes) corresponding to a very large number ofdiverse environments/scenarios (e.g., with various types of objects atdifferent distances, in different orientations, with different degreesof concealment, in different weather and/or lighting conditions, and soon).

Example Self-Driving Control Architecture

FIG. 6 illustrates an example self-driving control architecture (“SDCA”)400, which may be utilized in conjunction with any of the sensor controlarchitectures disclosed herein (e.g., the sensor control architecture100 of FIG. 1) in embodiments where the sensor control architecture(s)is/are used to facilitate safe operation of an autonomous vehicle. Inthe embodiment of FIG. 6, the SDCA 400 receives as input M sets ofsensor data 402 generated by M different sensors, with M being anysuitable integer equal to or greater than one. For example, “Sensor Data1” may include point cloud frames generated by a first lidar device,“Sensor Data 2” may include point cloud frames generated by a secondlidar device, “Sensor Data 3” (not shown in FIG. 6) may include framesof digital images generated by a camera, and so on. The sensor data 402may be generated by one or more types of sensors, such as one or morelidar devices, cameras, radar devices, thermal imaging units, IMUs,and/or other sensor types.

The sensor data 402 is input to a perception component 406 that includesa segmentation module 410, classification module 412 and tracking module414. The perception component 406 processes the sensor data 402 togenerate perception signals 408 descriptive of a current state of theautonomous vehicle's environment. The SDCA 400 also includes aprediction component 420, which processes the perception signals 408 (orother signals generated by the perception component 406) to generateprediction signals 422 descriptive of one or more predicted/futurestates of the autonomous vehicle's environment. In an embodiment where asensor control architecture is used with the SDCA 400, the perceptioncomponent 406, perception signals 408, prediction component 420 andprediction signals 422 may be the perception component 104, perceptionsignals 106, prediction component 120 and prediction signals 122,respectively, within the sensor control architecture 100 of FIG. 1, andthe sensor data 402 may correspond to data generated by some or all ofthe sensors 102 of FIG. 1.

A mapping component 430 obtains map data (e.g., a digital map includingthe area currently being traversed by the autonomous vehicle) and/ornavigation data (e.g., data indicating a route for the autonomousvehicle to reach the destination, such as turn-by-turn instructions),and outputs the data (possibly in a converted format) as mapping andnavigation signals 432. In some embodiments, the mapping and navigationsignals 432 include other map- or location-related information, such asspeed limits, traffic indicators, and so on. The signals 432 may beobtained from a remote server (e.g., via a cellular or othercommunication network of the autonomous vehicle, or of a smartphonecoupled to the autonomous vehicle, etc.), and/or may be locally storedin a persistent memory of the autonomous vehicle.

A motion planner 440 processes the perception signals 408, theprediction signals 422, and the mapping and navigation signals 432 togenerate decisions 442 regarding the next movements of the autonomousvehicle. Depending on the type of the motion planner 440, the decisions442 may be operational parameters (e.g., braking, speed and steeringparameters) or particular maneuvers (e.g., turn left, move to rightlane, move onto shoulder of road, etc.). The decisions 442 may beprovided to one or more operational subsystems of the autonomous vehicle(e.g., if the decisions 442 indicate specific operational parameters),or may be provided to one or more intermediate stages that convert thedecisions 442 to operational parameters (e.g., if the decisions indicatespecific maneuvers). The operational subsystems may include one, some orall of the components 330 of FIG. 4A, for example.

The motion planner 440 may utilize any suitable type(s) of rules,algorithms, heuristic models, machine learning models, or other suitabletechniques to make driving decisions based on the perception signals408, prediction signals 422, and mapping and navigation signals 432. Forexample, the motion planner 440 may be a “learning based” planner (e.g.,a planner that is trained using supervised learning or reinforcementlearning), a “search based” planner (e.g., a continuous A* planner), a“sampling based” planner (e.g., a planner that performs random searchesin a space that represents a universe of possible decisions), a“predictive control based” planner (e.g., a model predictive control(MPC) planner), and so on.

In some embodiments, the autonomous vehicle includes one or more otherSDCAs, in addition to the SDCA 400, and uses suitable techniques togenerate “final” decisions (for controlling the operational subsystems)based on the decisions 442 and the decisions of the other SDCA(s). Forexample, final decisions may be generated by calculating the geometricmean of the operational parameters produced by the different SDCAs, bydetermining which maneuvers are indicated by the most SDCAs in any givenscenario, and/or by using trained neural networks to determine whichSDCA decisions to select/implement in specific situations.

Example Architecture for Controlling Sensor Scan Line Distributions

FIG. 7 illustrates an example, software-based, sensor controlarchitecture 500, which is used to control spatial distributions of scanlines generated by one or more of sensors 502. The sensors 502 may beutilized by an autonomous vehicle (e.g., to make intelligent drivingdecisions based on the vehicle's current environment), or by anon-autonomous vehicle for other purposes (e.g., to collect datapertaining to a particular driving trip), and may be similar to thesensors 102 discussed above with reference to FIG. 1, for example.

The data generated by the sensors 502 is input to a perception component504 of the sensor control architecture 500, and the perception component504 processes the sensor data 502 to generate perception signals 506descriptive of a current state of the vehicle's environment. The sensorcontrol architecture 500 also includes a prediction component 520, whichprocesses the perception signals 506 (or other signals generated by theperception component 504) to generate prediction signals 522 descriptiveof one or more predicted/future states of the vehicle's environment. Theperception component 504, perception signals 506, prediction component520 and prediction signals 522 may be the same as, or similar to, theperception component 104, perception signals 106, prediction component120 and prediction signals 122, respectively, within the sensor controlarchitecture 100 of FIG. 1.

The perception signals 506 and (in some embodiments) prediction signals522 are input to a sensor control component 530, which processes thesignals 506, 522 to generate sensor control signals 532 that control oneor more parameters of one or more of the sensors 502. In particular, thesensor control component 530 controls scan line distributions (andpossibly also other parameters) of one or more sensor devices thatoperate by probing the environment with multiple scan lines. Forexample, the sensor control component 530 may control scan linedistributions of one or more lidar devices (e.g., the lidar system 200of FIGS. 2 and 3) and/or radar devices.

To determine a desired spatial distribution of scan lines, and generatethe corresponding control data, the sensor control component 530includes a scan line distribution (“SLD”) controller 534. The SLDcontroller 534 generally attempts to direct a given sensor's area offocus by way of increasing the density of scan lines within a certainrange (or within a number of non-contiguous ranges) in the field ofregard. In embodiments where scan lines of the controlled sensor aresubstantially horizontal and separated by gaps in the vertical direction(e.g., as shown in FIG. 3 for the lidar system 200), the SLD controller534 may cause the sensor to focus on a particular range of elevationangles by increasing the density of (i.e., decreasing the verticalspacing between) scan lines in that range. In other embodiments, scanlines of the controlled sensor may be substantially vertical andseparated by gaps in the horizontal direction, in which case the SLDcontroller 534 may cause the sensor to focus on a particular range ofazimuthal angles by increasing the density of (i.e., decreasing thehorizontal spacing between) scan lines in that range.

The SLD controller 534 may identify or determine a desired area of focus(e.g., a range of elevation angles) based on different factors orcriteria, depending on the embodiment and/or scenario. For example,areas of focus may be determined based on detected dynamic objects orother heuristic techniques, as discussed above with reference to FIG. 1.As another example, areas of focus may be determined based on theposition and/or configuration of the road in front of the vehicle, theposition of the horizon, the position of the sky, and/or the position orconfiguration of other objects or elements in the environment. In someembodiments, the SLD controller 534 uses different factors or criteriato determine the desired areas of focus, depending upon the currentsituation (e.g., depending on the speed of the vehicle, the level oftraffic, etc.). Generally, the factors or criteria that the SLDcontroller 534 considers when determining an area of focus are indicatedby, or determined based on, at least a portion of the perception signals506 (and possibly at least a portion of the prediction signals 522).Depending on the embodiment, the factors or criteria that SLD controller534 considers when determining the area of focus for a particular sensor(of sensors 502) may be determined based on data generated by thatsensor, and/or based on data generated by one or more other sensors ofthe sensors 502.

In some embodiments, the sensor control component 530 identifies ordetermines a desired area of focus based on sensor data from one or moreof the sensors 502, prior to processing by the perception component 504(e.g., based on raw sensor data from one or more of the sensors 502).For example, the sensor control component 530 may apply one or morerules or algorithms, or use a machine learning model, to identify areasof interest within one or more point cloud frames from one of thesensors 102. For instance, the sensor control component 530 may usesimple heuristics to identify as an area of interest a “clump” or“cluster” of points (e.g., where you have greater than a thresholdnumber of points all within a threshold distance of each other when thepoints are represented in three-dimensional space), or as a clump orcluster of points that moves over time (e.g., by calculating themovement of centroids of different clumps or clusters across multipleframes, and assuming that the centroids of clusters in adjacent framesbelong to the same object if certain criteria are met).

FIGS. 8A-8D illustrate various example scan patterns that the SLDcontroller 534 may cause a sensor to utilize. The scan patterns shown inFIGS. 8A-8D are relatively sparse merely for purposes of illustration,and the scan line distributions shown may instead be applied to otherscan patterns (e.g., scan patterns with many more points and/or scanlines). Referring first to FIG. 8A, an example scan pattern 550 includesa number of points 552 arranged in a number of uniformly spaced scanlines 554. The SLD controller 534 may create the uniform spacing bycausing a lidar device to have the same difference in elevation anglebetween each of the scan lines 554 (e.g., 1 degree, or 3 degrees, etc.).The scan pattern 550 may correspond to a situation in which the SLDcontroller 534 determines that no particular area of higher focus(within the field of regard) is desired, or a situation in which the SLDcontroller 534 has not yet determined or set any scan pattern (e.g., ifthe scan pattern 550 is a default scan pattern).

FIG. 8B illustrates an example scan pattern 560 in which the SLDcontroller 534 causes the scan lines 554 to be arranged according tosampled points along a continuous mathematical distribution (e.g., aGaussian distribution). As seen in FIG. 8B, for the scan pattern 560,the peak of the mathematical distribution falls at or near the elevation562. Thus, for example, the SLD controller 534 may have determined thata dynamic object is at or near the elevation 562, or that the elevation562 corresponds to an area of road that is a desired distance ahead ofthe vehicle (e.g., 60 feet), etc.

FIG. 8C illustrates an example scan pattern 570 in which the SLDcontroller 534 causes the scan lines 554 to be arranged according tosampled points along a continuous, multi-modal mathematical distribution(e.g., a multi-modal Gaussian distribution). As seen in FIG. 8C, for thescan pattern 570, local peaks of the mathematical distribution fall ator near the elevations 572 and 574. Thus, for example, the SLDcontroller 534 may have determined that dynamic objects are at or nearthe elevations 572 and/or 574 (e.g., a nearby leading vehicle and adistant leading vehicle, respectively), or that a dynamic object is ator near the elevation 572 and the horizon is at or near the elevation574, etc. In some embodiments, the scan pattern 570 may include localpeaks at more than two elevations.

FIG. 8D illustrates an example scan pattern 580 in which the SLDcontroller 534 causes the scan lines 554 to be arranged according to anarbitrary distribution (i.e., with desired densities at differentelevations, without necessarily sampling any sort of continuousmathematical distribution). As seen in FIG. 8D, the scan pattern 580provides a scan line density ratio of 2:4:1 in the regions 582, 584 and586, respectively. The regions 582, 584 and 586 may correspond to areasin which road (ahead of the vehicle), the horizon (e.g., including apredetermined distance that includes the average horizon elevation) andthe sky, respectively, have been detected by a perception component(e.g., perception component 504 of FIG. 7). In other embodiments, theSLD controller 534 may set a different ratio of scan line densities,and/or may apportion the scan line densities among other objects orelements of the environment.

Example Architecture for Controlling Sensor Parameters Using anAttention Model

FIG. 9 illustrates an example, software-based, sensor controlarchitecture 600, which is used to control parameters of one or more ofsensors 602 using an attention model. The sensors 602 may be utilized byan autonomous vehicle (e.g., to make intelligent driving decisions basedon the vehicle's current environment), or by a non-autonomous vehiclefor other purposes (e.g., to collect data pertaining to a particulardriving trip), and may be similar to the sensors 102 discussed abovewith reference to FIG. 1, for example.

The data generated by the sensors 602 is input to a perception component604 of the sensor control architecture 600, and the perception component604 processes the sensor data 602 to generate perception signals 606descriptive of a current state of the vehicle's environment. The sensorcontrol architecture 600 also includes a prediction component 620, whichprocesses the perception signals 606 (or other signals generated by theperception component 604) to generate prediction signals 622 descriptiveof one or more predicted future states of the vehicle's environment. Theperception component 604, perception signals 606, prediction component620 and prediction signals 622 may be the same as, or similar to, theperception component 104, perception signals 106, prediction component120 and prediction signals 122, respectively, within the sensor controlarchitecture 100 of FIG. 1.

The sensor data from one or more of the sensors 602, the perceptionsignals 606, and/or the prediction signals 622 are input to a sensorcontrol component 630, which processes the signals 606 (and/or 622) togenerate sensor control signals 632 that control one or more parametersof one or more of the sensors 602. In particular, the sensor controlcomponent 630 determines and controls parameters that define the areasof focus or “attention” for the controlled sensor(s). For a camera, forexample, the sensor control component 630 may center the camera's fieldof regard on a desired location in the environment. As another example,for a lidar or radar device, the sensor control component 630 may adjustthe spatial distribution of scan lines produced by the device (with ahigher density of scan lines at a desired area of focus), the center ofthe field of regard of the device, and/or horizontal and/or verticalwidths of the field of regard. In some embodiments, the sensor controlcomponent 630 also adjusts other sensor parameters, in conjunction withthe changes to the area of focus and/or independently of those changes.For example, the sensor control component 630 may, in addition tore-centering and reducing a lidar device's field of regard, increase ascan frame rate of the device, and/or increase a scan resolution (e.g.,number of points, scan line spacing, etc.) of the device. As anotherexample, the sensor control component 630 may, in addition tore-centering a camera's field of regard, change an exposure setting ofthe camera.

The sensor control component 630 includes an attention model 634 todetermine where to focus one or more of the sensors 602, and a parameteradjustment module 636 to generate and transmit data indicating thesensor parameter adjustment(s) needed to focus the sensor(s)accordingly. The attention model 634 may include any suitable type ofmodel. In a relatively simple implementation, for example, the attentionmodel 634 may analyze occupancy grids within the signals 606, identifywhich objects in the occupancy grids are dynamic in nature (e.g., asdiscussed above with reference to the dynamic object detector 134 ofFIG. 1), and use pre-defined rules to focus one or more of the sensors602 on the nearest dynamic object. Other heuristic techniques may also,or instead, be used to focus one or more of the sensors 602, asdiscussed above in connection with FIG. 1.

Alternatively, or in addition (e.g., after a heuristic technique is usedto determine an initial or preliminary area of focus as discussedabove), various types of machine learning may be used to train theattention model 634. In one such embodiment, the attention model 634 istrained using reinforcement learning. With reinforcement learning, ateach of a number of different times (e.g., periodically, or on anothersuitable time basis), the attention model 634 observes the state of thevehicle environment, decides to take an action (e.g., set a particulararea of focus), and potentially receives or recognizes a reward based onresults of that action. During this training phase, the attention model634 may seek to learn a mapping of states to actions (e.g., a mapping ofenvironments to areas of focus) that maximizes the rewards over somesuitable time interval or intervals. The state at any given time may berepresented by the occupancy grid in the perception signals 606 (andpossibly, in some embodiments, by one or more future occupancy grids inthe prediction signals 622). Thus, the state space can be very large,and may in some embodiments be treated as a continuous state space. Theaction space, representing potential actions/decisions by the attentionmodel 634, may correspond to the finite number P of discrete areas offocus (and/or discrete focus-related parameter settings) from which theattention model 634 can make a selection.

To accomplish the training, learning parameters may be manually set todefine a number of positive/desired results/goals, and a number ofassociated rewards. The positive results may be defined by a developeras any specific, suitable outcomes related to near-term or long-termdriving goals, such as avoiding safety violations (e.g., crashing),achieving certain metrics (e.g., maintaining some minimum distance fromall dynamic objects, having an average or maximum G-force below apredefined threshold, etc.), and so on. In general, the reward that isdefined for a particular result may determine how heavily that result isweighed in the training process.

In some embodiments, training with reinforcement learning may beaccomplished using simulated scenarios. For a given set of learningparameters, for example, the training data may include environment statedata (e.g., occupancy grid(s)) that corresponds to a virtual autonomousvehicle moving through a large number of different, virtualenvironments, with a reward being indicated/provided (or notindicated/provided) based on whether the results defined by the learningparameters are achieved in specific simulated scenarios. In otherembodiments, the training data instead, or also, includes real-worlddata, e.g., generated by a real-world autonomous vehicle that includesthe attention model 634 or a similar model. In either case, the trainingprocess generally causes the attention model 634 to learn to makedecisions that maximize its rewards.

In another embodiment, the attention model 634 is trained using anevolutionary algorithm. The training may occur in a virtual environment,for example, and/or in a real-world environment. As yet another example,the attention model 634 may be trained with supervised learning toapproximate the attention/behaviors of a human driver. In one suchembodiment, the direction and/or target of a human (e.g., expert)driver's gaze is tracked as he or she drives through real-world and/orsimulated environments. The states of the environment (e.g., asrepresented by sensor data and/or occupancy grids) may then be used asfeature sets to train the attention model 634, with data indicating thetracked gaze directions/locations being used as labels for supervisedlearning. Human gaze directions/locations may be tracked using anysuitable technology, such as image processing of driver-facing camerasto detect the direction in which the user's pupils are facing over time.Thus, for example, the attention model 634 may learn that an experthuman driver tends to focus a particular distance ahead on the road whenthe vehicle is turning, with that distance being affected in specificways by factors such as turn radius, weather, visibility, distance to aleading vehicle, and so on. As another example, the attention model 634may learn that, to some extent, an expert human driver tends to focus onpedestrians who are shorter (e.g., children) over pedestrians who aretaller (e.g., adults).

In some embodiments, the attention model 634 identifies “salient”regions of the environment (e.g., by generating, for a particular sensorimage frame, a “heat map” indicative of saliency), and the parameteradjustment module 636 sets the appropriate parameter(s) of one or moreof the sensors 602 to cause the sensor(s) to iteratively refocus onthose salient regions as part of a process for accurately identifyingand/or classifying objects within the vehicle environment. In thisembodiment, the attention model 634 is trained to identify salientregions using supervised learning, with features corresponding todigital representations of the vehicle environment (e.g., occupancygrids in the signals 606) and labels corresponding to correctsegmentations and/or classifications for objects depicted within thedigital representations (e.g., correct segmentations and/orclassifications within point cloud data). Thus, the attention model 634may be trained to identify salient regions without necessarily labeling“correct” or “desired” areas of focus within the feature setenvironments. In an alternative embodiment, the parameter adjustmentmodule 636 causes different ones of the sensors 602 to focus ondifferent ones of the identified salient regions in parallel, to hastenthe accurate segmentation and/or classification of objects in theenvironment.

In some embodiments, which may or may not utilize machine learning, theattention model 634 determines where and/or how to focus one or more ofthe sensors 602 based on a configuration of the road on which thevehicle is traveling. In particular, the road configuration (e.g.,slope), and possibly the orientation of the vehicle itself (e.g.,heading downhill at a certain angle), may be analyzed to ensure that oneor more of the sensors 602 are focused so as to collect more usefuldata, without, for example, being overly focused on the road immediatelyahead of the vehicle or overly focused on the sky.

FIG. 10 depicts scenarios 700A through 700D, which illustrate how avehicle sensor may be poorly focused as a vehicle 702 goes down and uphills. The vehicle 702 (e.g., the vehicle 300 of FIG. 4A or the vehicle360 of FIG. 4B) has one or more forward-facing sensors (e.g., the sensorheads 312A, 312D or the sensor heads 372A, 372G, respectively). A sensordirection 704 may represent the center of the field of regard of asensor (e.g., lidar device, camera, etc.), or the center of a bottomedge of the field of regard, etc. Alternatively, the sensor direction704 may represent an area of highest focus within the field of regard(e.g., a densest concentration of horizontal scan lines for a lidar orradar device).

In the example of FIG. 10, the sensor direction 704 is fixed. As seen inFIG. 10, the fixed sensor direction 704 may result in a fairly long“sensing distance” for scenario 700A (i.e., a fairly long distance thatthe sensor can actually “see,” irrespective of the theoretical range ofthe sensor). In scenario 700B, however, the vehicle's downwardtrajectory, combined with the approaching hill, causes the sensingdistance to be greatly limited. In scenarios 700C and 700D, thevehicle's upward trajectory results in a long sensing distance (e.g.,equal to the theoretical range), but with the sensor direction 704aiming into the sky where few or no objects of concern are likely to belocated. Moreover, and particularly in scenario 700D, this may result interrestrial objects that are relatively near to the vehicle 702 (e.g.,the vehicle 706) being outside of the sensor field of regard, or onlypartially captured in the field of regard.

FIG. 11 depicts scenarios 710A through 710D, which illustrate how avehicle sensor may be optimally focused, or at least more usefullyfocused, as a vehicle 712 goes down and up the same hills shown in FIG.10. Similar to the vehicle 702 of FIG. 10, the vehicle 712 (e.g., thevehicle 300 of FIG. 4A or the vehicle 360 of FIG. 4B) has one or moreforward-facing sensors (e.g., the sensor heads 312A, 312D or the sensorheads 372A, 372G, respectively), and a sensor direction 714 mayrepresent the center of the field of regard of a sensor (e.g., lidardevice, camera, etc.), the center of a bottom edge of the field ofregard, an area of highest focus within the field of regard (e.g., adensest concentration of horizontal scan lines for a lidar or radardevice), etc.

In the example of FIG. 11, and unlike the example of FIG. 10, the sensordirection 714 is dynamically configurable based on road configuration.Referring first to the scenario 710A, the sensor direction 714 may bestraight ahead (e.g., a default direction). In the scenario 710B,however, the sensor direction 714 may be slightly elevated, to preventthe oncoming hill and the current downward trajectory of the vehiclefrom overly restricting the sensing distance. Next, in the scenario710C, the sensor direction 714 is set at a lower elevation to preventthe sky (or tops of approaching trees, etc.) from occupying too much ofthe sensor field of regard. In the scenario 710D, the sensor direction714 is set at an even lower elevation, for the same reason. Thus, forexample, the field of regard may better capture a vehicle 716 that isleading (or approaching) the vehicle 712 and just past the peak of thehill.

In some embodiments, the sensor direction 714 can also be dynamicallyadjusted in the lateral/horizontal/azimuthal direction. For example, ifthe road ahead of the vehicle 712 in scenario 710B not only rises, butalso veers to the right of the vehicle 712, the sensor direction 714 maybe adjusted not only to a higher elevation, but also to the right (e.g.,to allow a sensor of the vehicle 712 to “see through” the turn).

The sensor direction 714 may be controlled by the sensor controlcomponent 630 of FIG. 9, for example. More specifically, the attentionmodel 634 of FIG. 9 may determine the desired focus of one or more ofthe sensors 602 based at least in part on the road configuration, andthe parameter adjustment module 636 may determine the sensor parametersthat are necessary to implement that focus (e.g., elevation angle andpossibly azimuthal angle of the entire sensor, or angles/ranges ofmovement of mirrors within a lidar device, etc.) and send thoseparameters/settings to the appropriate sensor(s).

To determine the appropriate focus for the sensor(s), the attentionmodel 634 may identify one or more road portions (e.g., ahead of thevehicle 712), and determine certain characteristics of the roadportion(s). For example, the attention model 634 may process lidar,radar and/or camera data generated by the sensors 602 to determine theslope of one or more portions of the road ahead. In some embodiments,the attention model 634 also processes data indicating the orientationand/or movement of the vehicle 712 relative to the terrestrial frame, inorder to obtain a more complete “picture” of the road and the positionof the vehicle 712 on the road. For example, the attention model 634 mayprocess inertial data from an IMU of the sensors 602 to determine theslope of the road directly beneath the vehicle 712. As another example,the attention model 634 may process data from a satellite positioningunit (e.g., GPS, GNSS, etc.) to determine the current elevation of thevehicle 712, and use changes in that elevation to determine the slope ofthe road on which the vehicle 712 is traveling.

Once the slope of one or more road portions ahead of (and possiblybeneath) the vehicle 712 has/have been determined, the attention model634 may determine a sensor direction 714 (e.g., elevation angle andpossibly azimuthal angle) that satisfies one or more visibilitycriteria. For example, the attention model 634 may seek to maximize asensing distance of a sensor in some direction along which the vehicle712 is expected to travel (e.g., based on current planning from themotion planner 440 of FIG. 6, and/or based on mapping and navigationsignals 432 of FIG. 6, etc.). To this end, the attention model 634 (oranother unit of the sensor control component 630) may use well-knowntrigonometric principles/formulas to determine where a sensor field ofregard would be focused for a given elevation (and possibly azimuthal)angle.

Additional criteria may be used to ensure that the visibility criteriondescribed above does not result in areas of the road immediately infront of the vehicle 712 being largely or entirely excluded from thesensor field of regard. In scenario 710B, for example, it may not bedesirable to maximize sensing distance by focusing on the top of theapproaching hill, as doing so may result in an elevation angle thatcauses the sensor to miss objects immediately in front of the vehicle712. On the high end, of course, the sensing distance is limited by therange of the sensor, and the attention model 634 may account for such alimitation when applying the visibility criteria.

The visibility criteria may themselves be dependent upon certainfactors, in some embodiments. For example, the attention model 634 mayseek to obtain a minimum sensing distance that varies according to thecurrent weather (as sensed by the sensors 602, or as determined throughother means), or based on the sensed or expected speed of traffic aroundthe vehicle 712, etc. If the minimum sensing distance cannot be achievedin a given scenario, the sensor control component 630 (or anothercomponent) may generate a signal that causes the vehicle to decrease itsspeed (e.g., by an amount proportional to the difference between theminimum sensing distance and the current sensing distance).

While FIG. 11 depicts a sensor direction being adjusted for one or moreforward-facing sensors, the attention model 634 may apply similarprinciples to adjust the sensor direction (elevation and/or azimuthalangle) of rear-facing and/or side-facing sensors, in some embodiments.For example, the direction of a rear-facing sensor of the vehicle 712may be elevated in scenario 710C in order to increase the sensingdistance of the sensor (i.e., to avoid pointing the sensor “into” theroad behind the vehicle 712). Similarly, the attention model 634 maychange the elevation of right- and/or left-facing sensors when thevehicle 712 is traveling on a hillside or mountainside.

Example Perception Components for Handling Variable Sensor ParameterSettings

Dynamic adjustment of sensor parameters settings (e.g., for parametersthat define the area of focus for a sensor), according to any of theembodiments described herein, can greatly improve the ability of sensorsto capture useful information about the environment (e.g., informationneeded to improve vehicle safety). However, variability in sensorsettings may make it more difficult to process the sensor data. Forexample, perception functions (e.g., segmentation, classification andtracking) may be made more difficult if the perception component mustprocess lidar data with different scan line spatial distributions,camera data with different exposure settings, and so on. In the case ofnon-uniform scan line distributions, for instance, different parts ofthe “scene” captured by the sensor (e.g., different elevation angleranges captured by a lidar device) will have different densities ofpoints as compared to a uniform scan line distribution. Thus, an object(e.g., a car) may “look” very different based solely on where the objectresides within the scene, even if the object remains at a constantdistance from the sensor.

Accordingly, a number of perception components designed to handlevariability of sensor parameter settings will now be described. Thefollowing perception components may be used to handle sensors withdynamically varying parameter settings, and/or to allow the perceptioncomponents to be used in systems utilizing any of a number of differentsensor types having different, fixed parameter settings.

Referring first to FIG. 12, a perception component 720 includes one ormore neural networks 722 for which training is conditioned on particularsensor parameter settings. The perception component 720 may be theperception component 104 of FIG. 1, the perception component 406 of FIG.6, or the perception component 504 of FIG. 7, for example. The neuralnetwork(s) 722 may include separate neural networks for segmentation,classification and/or tracking (e.g., corresponding to the functions ofthe segmentation module 110, classification module 112 and/or trackingmodule 114, respectively, of FIG. 1). Alternatively, the neuralnetwork(s) 722 may only include a single neural network that jointlyperforms segmentation, classification and tracking, or include a singleneural network that jointly performs any two of those three functions.The use of neural networks to perform segmentation, classificationand/or tracking functions is discussed above, in general terms, withreference to FIG. 1.

In the example embodiment of FIG. 12, the training of each of the neuralnetwork(s) 722 is conditioned on a specific sensor parameter setting. Asthe term is used herein, a parameter “setting” may refer to a specificvalue of a single parameter (e.g., a specific elevation angle of asensor, or a specific frame rate, etc.), or to a set of specific valuescorresponding to a set of respective parameters (e.g., specificelevation and azimuthal angles, or a specific frame rate, field ofregard width, and spatial distribution of scan lines, etc.). Each of Nsets 724 of training data for the neural network(s) 722 (N being anysuitable integer greater than one) has a different, associated parametersetting indicator. For example, “Training Data 1” may be associated withan indicator that “Training Data 1” corresponds to a camera having afirst exposure setting, while “Training Data 2” may be associated withan indicator that “Training Data 2” corresponds to a camera having asecond, different exposure setting.

In addition to the sensor parameter settings, each of the trainingdatasets 724 may include numerous sets of features, and associatedlabels, for supervised learning. The content of each feature set, andthe nature of the associated label, generally depends on the type ofneural network(s) being trained. If a neural network of a segmentationmodule is being trained, for example, and if the segmentation module isto be used for identifying objects in lidar point clouds, each of thefeature sets in a particular one of training datasets 724 may include apoint cloud generated by a lidar device having the indicated parametersetting, and each label may indicate a correct segmentation of pointswithin the point cloud. As another example, if a neural network of aclassification module is being trained, and if the classification moduleis to be used to classify objects in lidar point clouds, each of thefeature sets in a particular training dataset 724 may include a pointcloud subset (corresponding to a single identified object) that wasoutput by a segmentation module, where the segmentation module operatedon a lidar device having the indicated parameter setting, and each labelmay indicate a correct classification for the point cloud subset.

Because each of the training datasets 724 indicates which sensorparameter settings were used to generate the various features sets, theneural network(s) 722 learn(s) how to process sensor data in a mannerthat is suited to the specific parameter setting of the sensor. That is,the parameter setting indicator may itself act as an independent featurein the feature space used to train the neural network(s) 722, and alsoact as an independent feature in the feature space (sensor data input)used during run-time operation. In the embodiment depicted in FIG. 12,for example, a first sensor 726A and a second sensor 726B provide,during run-time operation, not only sensor data (i.e., data indicativeof what was sensed by the sensor), but also an indication of the sensorparameter setting used to collect/generate that sensor data (e.g., scanline distribution, frame width, camera exposure, etc.). Alternatively,the sensor parameter settings may be provided by a different unit thatcontrols the settings (e.g., sensor control component 130 of FIG. 1 orsensor control component 530 of FIG. 7).

The perception component 720 generates perception signals 728 by usingthe trained neural network(s) 722 to process the sensor data (from oneor both of the sensors 726A, 726B) and the associated parametersettings. The perception signals 728 may be similar to the perceptionsignals 106 of FIG. 1, for example, and may be used for prediction,motion planning, and/or other purposes. While FIG. 12 shows two sensorswith different parameters settings, it is understood that the perceptioncomponent 720 may instead, or additionally, operate on sensor data fromone or more sensors that have dynamically changing (e.g., dynamicallycontrolled) parameter settings.

In other embodiments, distinct neural networks are separately trained tohandle different sensor parameter settings. FIG. 13 illustrates one suchembodiment. In FIG. 13, a perception component 730 includes N sets 732of neural networks (N being any suitable integer greater than one). Eachset 732 of neural networks includes one or more neural networks that aretrained, using a respective one of N sets 734 of training data, toaccommodate a sensor configured according to a specific sensor parametersetting. For example, “Neural Network(s) 1” may be trained, using“Training Data 1,” to process a first scan line distribution, while“Neural Network(s) 2” may be trained, using “Training Data 2,” toprocess a second, different scan line distribution. In some embodiments,each of the sets 732 of neural networks includes separate neuralnetworks for segmentation, classification and/or tracking (e.g.,corresponding to the functions of the segmentation module 110,classification module 112 and/or tracking module 114, respectively, ofFIG. 1). Alternatively, each of the sets 732 of neural networks mayinclude a single neural network that jointly performs segmentation,classification and tracking, or jointly performs any two of those threefunctions.

While each of the training datasets 734 corresponds to sensor datacollected/generated using sensors with a different parameter setting,the training datasets 734 (unlike the training datasets 724 of FIG. 12)do not necessarily include any indications of those parameter settings.In other respects, however, the training datasets 734 may be similar tothe training datasets 724, and may include feature sets and associatedlabels for supervised learning. As with the training datasets 724, thecontent of each feature set, and the nature of the associated label,generally depends on the type of neural network(s) being trained.

Once the sets 732 of neural networks are trained, and during run-timeoperation, sensor data may be accompanied by data indicating whichsensor parameter setting was used to collect/generate that sensor data.In the embodiment depicted in FIG. 13, for example, a first sensor 736Aand a second sensor 736B provide, during run-time operation, not onlysensor data (i.e., data indicative of what was sensed by the sensor),but also an indication of the sensor parameter setting used tocollect/generate that sensor data (e.g., the scan line distribution,frame width, camera exposure, etc.). Alternatively, the sensor parametersettings may be provided by a different unit that controls the settings(e.g., sensor control component 130 of FIG. 1 or sensor controlcomponent 530 of FIG. 7). The perception component 730 may use theindications of the sensor parameter settings to select which of the sets732 of neural networks to use to process the sensor data.

The perception component 730 generates perception signals 738 by usingthe selected neural network sets 732 to process the sensor data (fromone or both of the sensors 736A, 736B). The perception signals 738 maybe similar to the perception signals 106 of FIG. 1, for example, and maybe used for prediction, motion planning, and/or other purposes. WhileFIG. 13 shows two sensors with different parameters settings, it isunderstood that the perception component 730 may instead, oradditionally, operate on sensor data from one or more sensors that havedynamically changing (e.g., dynamically controlled) parameter settings.

In other embodiments, a perception component uses other techniques tohandle different or variable sensor parameter settings. For example,FIG. 14 illustrates a perception component 740 that uses interpolationtechniques, specifically to handle different or variable spatialdistributions of scan lines within a point cloud. In this embodiment,sensors 742A and 742B may, for instance, represent lidar or radardevices that generate point clouds using different scan linedistributions (“dist1” and “dist2,” respectively). As just one example,“dist1” may correspond to a uniform scan line distribution (e.g., asshown for scan pattern 550 of FIG. 8A), while “dist2” may correspond toa specific, non-uniform scan line distribution (e.g., as shown for scanpattern 560, 570 or 580 of FIG. 8B, 8C or 8D, respectively).

The perception component 740 may be the perception component 104 of FIG.1, the perception component 406 of FIG. 6, or the perception component504 of FIG. 7, for example. The perception component 740 includes aninterpolation module 744, a segmentation module 746, a classificationmodule 748 and a tracking module 750. The segmentation module 746,classification module 748 and/or tracking module 750 may be the same asor similar to the segmentation module 110, classification module 112and/or tracking module 114, respectively, of FIG. 1.

The interpolation module 744 may generally be configured to normalizethe sensor point cloud, or portions thereof, in an appropriate manner,such that the segmentation module 746, classification module 748 and/ortracking module 750 can correctly and consistently process point cloudframes (or portions thereof). The manner in which the interpolationmodule 744 processes point cloud data may vary according to theembodiment.

In one embodiment, for example, the interpolation module 744 uses a“super-resolution” technique in which point cloud data is enhanced usingdata from a high-resolution camera of the vehicle. In this technique,the camera may have a substantially higher density of pixels than thedensity of points in the point cloud, and the field of regard of thecamera at least partially overlaps the field of regard of the pointcloud. After receiving a camera image frame, the interpolation module744 may perform a mathematical transform on the image frame data, wherethe transform corresponds to the inverse of the physical process forcapturing images (e.g., an inverse of the transformation that occurswhen the camera projects points in the three-dimensional space of thereal world onto a two-dimensional image plane). The formulation of theinverse transform may be based on certain assumptions, such as thepresence of a perfectly flat ground plane, for example.

Once the interpolation module 744 has performed the inverse transform onan image frame, the transformed frame (or a portion thereof) may becombined with the corresponding point cloud frame (or a portion thereof)in some suitable manner. For example, the transformed, three-dimensionalframe may be stitched onto (or otherwise fused with) the threedimensional point cloud frame, creating a much higher-resolution,“enhanced” point cloud frame (e.g., an unordered set of points with x, yand z coordinates). For example, the point cloud frame may provide a“skeleton” or framework on which the transformed camera data is fitted.The interpolation module 744 may then sample the enhanced point cloudframe in a manner that precisely or approximately mimics a uniform scanline distribution (or some other, non-uniform scan line distributionthat is used as a reference distribution for purposes of normalization).Thereafter, the segmentation module 746, classification module 748,and/or tracking module 750 may process the normalized point cloud frame(i.e., the sampled version of the enhanced point cloud frame) todetermine the respective features of the vehicle environment. In someembodiments, the interpolation module 744 only applies thesuper-resolution technique when a non-uniform (or non-reference) scanline distribution is used to generate the point cloud frame.

Alternatively, the interpolation module 744 may use a three-dimensionalmesh technique. In this embodiment, the three-dimensional mesh isconstructed from the points of a point cloud frame. For example, theinterpolation module 744 may generate a triangle mesh by connectingvarious points that are close neighbors within the point cloud frame.The interpolation module 744 may apply any suitable rules to determinewhich points to connect within the point cloud frame when forming themesh. For example, only points within some threshold distance (e.g., 1meter) may be connected.

Once constructed, the three-dimensional mesh may have a virtual surface.The interpolation module 744 may sample points along the virtual surfacein a manner that precisely or approximately mimics a uniform scan linedistribution (or some other, non-uniform scan line distribution that isused as a reference distribution for purposes of normalization).Thereafter, segmentation module 746, classification module 748, and/ortracking module 750 may process the normalized point cloud frame (i.e.,the sampled version of the enhanced point cloud frame or virtualsurface) to determine the respective features of the vehicleenvironment. In some embodiments, interpolation module 744 only appliesthe three-dimensional mesh technique when a non-uniform (ornon-reference) scan line distribution is used to generate the pointcloud frame.

As yet another alternative, the interpolation module 744 may use atechnique in which two-dimensional distances between points of thereceived point cloud and particular interpolated points are used forthresholding, and to weight an interpolation function. The values of anysuitable parameter that is associated with points of a point cloud framemay be interpolated. If a lidar device provides both depth and intensityvalues for each point in the point cloud, for example, then depth,intensity, or both depth and intensity may be interpolated at desiredpoints. The “desired” points for interpolation may be points that, incombination, either precisely or approximately mimic a uniform scan linedistribution (or some other, non-uniform scan line distribution that isused as a reference distribution for purposes of normalization).

In this embodiment, interpolated points are generated at desiredlocations between the points/pixels of a point cloud frame received froma sensor (e.g., from a lidar device) by way of looking at thetwo-dimensional distance between that desired location of eachinterpolated point and a number of neighboring points in the receivedpoint cloud frame. In particular, the distance between (1) the desiredlocation for an interpolated point, and (2) any given neighboring point,may be determined based on only the horizontal and vertical distancebetween points. The distance may be calculated using the difference inazimuth and elevation angles, for instance, without factoring in thedepth of the neighboring points for purposes of the distancecalculation.

For a given point of the point cloud frame, this calculated distance maybe used for thresholding. In particular, a neighboring point of thepoint cloud frame may be ignored (for purposes of the interpolated pointbeing generated) if the calculated two-dimensional distance between thatneighboring point and the interpolated point is greater than somethreshold distance. If the neighboring point is near enough to be usedfor interpolation, however, the calculated distance may be used toweight the parameter value (e.g., depth, intensity, etc.) of thatneighboring point when estimating a parameter value for the interpolatedpoint being generated.

As just one example, the distance between a desired interpolated pointand the neighboring point of the point cloud frame may be calculatedusing the equation:

D _(i)=√{square root over ((EL _(P) −EL _(I))²+(AZ _(P) −AZ_(I))²)}  (Equation 1)

where EL_(P) is the elevation angle of the neighboring point, EL_(I) isthe elevation angle of the desired/interpolated point, AZ_(P) is theazimuth angle of the neighboring point, AZ_(I) is the azimuth angle ofthe desired/interpolated point, and D_(i) is the two-dimensionaldistance being calculated for the i^(th) neighboring point. Equation 1may be applied to determine the two-dimensional distance for each of Nneighboring points. In various embodiments, N may be a particular subsetof points in the point cloud frame, or all points in the point cloudframe. As just one example, the distance D_(i) is calculated only foreach of N (e.g., four) points that are necessarily nearest to thedesired/interpolated point. With reference to FIG. 8B, for instance, thedistance D_(i) may only be calculated for each of the left-most twopoints of the top scan line, and each of the left-most two points of thenext-highest scan line, if it is desired that a point be interpolated ata position somewhere between those four points.

Once the distance D_(i) has been calculated for the interpolated pointand each of the N neighboring points, any neighboring points for whichthe distance D_(i) is greater than some threshold distance (e.g., half adegree, one degree, etc.) may be discarded or ignored for purposes ofthe interpolation. In some embodiments, if only one neighboring point iswithin the threshold distance, the parameter value (depth, intensity,etc.) for the interpolated point is simply estimated to be equal to thatneighboring point. In other scenarios, the remaining two or more({circumflex over (N)}) points within the threshold distance may be usedto estimate the parameter value for the interpolated point by weightingthe parameter value for each of the {circumflex over (N)} neighboringpoints based on the distance D_(i) to that neighboring point. Forinstance, the parameter value for the interpolated point, PV_(I), may beestimated as:

$\begin{matrix}{{PV}_{I} = {\frac{PV\_ sum}{D\_ sum}\mspace{14mu} {where}}} & \left( {{Equation}\mspace{14mu} 2} \right) \\{{{PV\_ sum} = {\sum\limits_{i = 1}^{\hat{N}}\frac{{PV}_{i}}{D_{i}}}},} & \left( {{Equation}\mspace{14mu} 3} \right) \\{{{{{{D\_ sum} = {\sum\limits_{i = 1}^{\hat{N}}\frac{1}{D_{i}}}},{and}}{PV}_{i}\mspace{14mu} {is}\mspace{14mu} {the}\mspace{14mu} {parameter}\mspace{14mu} {value}\mspace{14mu} {for}\mspace{14mu} {the}\mspace{14mu} {ith}\mspace{14mu} {point}}\mspace{14mu} {{of}\mspace{14mu} {the}\mspace{14mu} \hat{N}\mspace{14mu} {neighboring}\mspace{14mu} {{points}.}}}\mspace{14mu}} & \left( {{Equation}\mspace{14mu} 4} \right)\end{matrix}$

It is understood that equations other than those provided above mayinstead be used to estimate the parameter value(s) for a particularinterpolated point, possibly including additional factors or steps. Forexample, a more complex algorithm may be used to decide whether toignore a particular neighboring point, such as by varying the distancethreshold based on one or more factors, etc.

In some embodiments, a heuristic approach may also, or instead, be usedto “interpolate” values of parameters that are not amenable to acontinuous interpolation function. For example, classification module748 and/or segmentation module 746 may perform interpolation todetermine a classification for an interpolated point, and/or todetermine which segmented object an interpolated point belongs. Suchembodiments may identify the subset of N neighboring points in thereceived point cloud, and/or determine the two-dimensional distance foreach of those N neighboring points, as described above (e.g., usingEquation 1). Rather than applying a continuous interpolation function,however, the interpolated point may simply be assigned the sameclassification (and/or be assigned to the same object) as the nearest ofthe N neighboring points. In still other embodiments, the module 744 mayinstead use a voxel grid technique. Unlike camera image data, which haspoints/pixels arranged in a well-defined spatial order (in twodimensions), point cloud data includes points (e.g., sets of x, y, zcoordinates) that are unordered and can therefore be relativelydifficult to process. One technique for handling point cloud datainvolves generating a voxel grid, i.e., a three-dimensional grid of“voxels” (e.g., cubes or other volumes that are tightly stacked). Eachvoxel/volume of the voxel grid may be assigned an attribute valuerepresenting the number of points from the point cloud frame that fallwithin the volume of that voxel/volume. However, the use of a voxel griddoes not, in itself, solve the problem of non-uniform and/or varyingscan line distributions. When a uniform scan line distribution is usedto generate point clouds, for example, the classification module 748 mayexpect a particular type of object to have (at least approximately) aparticular distribution of points among the voxels. Changing the scanline distribution may greatly skew the distribution of points among thevoxels for objects of that type, making it difficult for theclassification module 748 to accurately classify those objects.

To solve this problem, in one embodiment, the module 744 may generatevoxel grids not on a frame-by-frame basis, but rather by constructing aseparate voxel grid for each of a number of point cloud portions thatthe segmentation module 746 has already identified (within a point cloudframe) as distinct objects within the field of regard. Moreover, foreach such point cloud portion (i.e., each object), the module 744 mayuse an initial estimate or guess of the object's type/class/category, aswell as an indicator of the current scan line distribution (e.g., asprovided by the sensor itself, or a sensor controller such as sensorcontrol component 130 of FIG. 1) to dynamically set the dimensions ofeach voxel (i.e., the “leaf size”) in the corresponding voxel grid. Thedimensions may be set with the goal of constructing a voxel grid inwhich points of the point cloud frame are distributed among the voxelsin roughly the same numbers and/or proportion that the classificationmodule 748 would expect for objects of that type (e.g., in a manner thatmatches or closely approximates the point distribution among voxels if auniform scan line distribution were used).

Depending on the embodiment, the module 744 may set the leaf size inone, two or three dimensions (i.e., the x, y and/or z dimensions) toaccomplish this task. For a point cloud frame portion corresponding to aparticular object, for example, the module 744 may set the leaf size to1 meter in each of the x, y and z directions, or to 1 meter in the xdirection, 2 meters in the y direction, and 1.2 meters in the zdirection, etc. In some embodiments, the module 744 determines the leafsize dimensions by accessing a database storing different leaf sizes fordifferent object types. For example, the database may store a first(x,y,z) value for any objects with an initial classification of “pickuptruck,” and a second, different (x,y,z) value for any objects with aninitial classification of “motorcycle,” etc. Moreover, the database maystore different leaf size values for different scan line distributions.For example, the database may store a first (x,y,z) value for anyobjects with a preliminary classification of “pickup truck” when a firstscan line distribution is used, and a second (x,y,z) value for anyobjects with a preliminary classification of “pickup truck” when asecond, different scan line distribution is used.

To provide a relatively simple example, the classification module 748may generally expect that, for any relatively nearby, adult person, andwith a uniform scan line distribution, a first voxel (or set of voxels)corresponding to the person's upper third will include about 20 pointsof the point cloud frame, a second voxel (or set of voxels)corresponding to the person's middle third will include about 30 pointsof the point cloud frame, and third a voxel (or set of voxels)corresponding to the person's lower third will include about 15 pointsof the point cloud frame. Alternatively, the classification module 748may expect a particular ratio of points in each of those voxels or voxelsets (e.g., 4:6:3 for the above example). If the scan line distributionis then altered to focus on an elevation around the level of theperson's head by making the scan lines at that elevation relativelydense (e.g., in order to focus on the horizon), and if the leaf size isunchanged, the top, middle and lower voxels may instead have 50, 20 and5 points, respectively (i.e., a 10:4:1 ratio). To prevent thisunrecognizable/unexpected distribution, the module 744 may construct avoxel grid using a leaf size with different dimensions, such as asmaller z dimension (if the z dimension corresponds to elevationrelative to the ground plane). The new leaf size may cause the pointsfalling within the three voxels or voxel sets to exhibit a distributionthat is closer to the expected numbers (20, 30 and 15 points) and/or theexpected ratio (4:6:3), thereby increasing the likelihood that theclassification module 748 can correctly classify the object.

The initial estimate of an object type (in order to determine theappropriate leaf size) may be obtained in different ways, depending onthe environment. For example, the classification module 748 may make apreliminary “best guess” at the type of a particular object using adefault voxel grid (e.g., generated by the module 744), and that guessmay be used to set the leaf size. Using another voxel grid generated bythe module 744 (with the dynamically determined leaf size), theclassification module 748 may then confirm or refute the preliminaryguess (or provide a more specific classification, etc.). As anotherexample, data from a camera and/or other sensor(s) may be used to makethe preliminary “best guess” at the type of a particular object, or todetermine a more general classification, and that guess or generalcategory may then be used to set the leaf size. Using the voxel gridgenerated by the module 744 (with the dynamically determined leaf size),the classification module 748 may then confirm or refute the preliminaryguess, or provide a more specific classification, etc.

Regardless of which of the above (or other) techniques is used by themodule 744, the perception component 740 of FIG. 15 generates perceptionsignals 752 by using the segmentation module 746, classification module748 and/or tracking module 750 to process the (possibly normalized)point cloud data (from one or both of the sensors 742A, 742B) and/orvoxel grid data. The perception signals 752 may be similar to theperception signals 106 of FIG. 1, for example, and may be used forprediction, motion planning, and/or other purposes. While FIG. 14 showstwo sensors with different scan line distributions, it is understoodthat the perception component 740 may instead, or additionally, operateon point clouds from one or more sensors that have dynamically changing(e.g., dynamically controlled) scan line distributions (e.g., asdiscussed above in connection with FIG. 7).

Example Computing System for Controlling Vehicle Sensors

FIG. 15 is a block diagram of an example computing system 800 forcontrolling sensors of a vehicle, processing vehicle sensor data and/or(if the vehicle is self-driving) controlling the vehicle. The computingsystem 800 may be integrated within a vehicle in any suitable manner,and at any suitable location or locations within the vehicle. Thecomputing system 800 may be included, or partially included, within thevehicle controller 322 of FIG. 4A, for example. The computing system 800includes one or more processors 802, and a memory 804 storinginstructions 806. Depending on the embodiment, the instructions 806 mayimplement a sensor control architecture (e.g., if the computing system800 is used to implement/run the sensor control architecture 100 of FIG.1, the self-driving control architecture 400 of FIG. 6, the sensorcontrol architecture 500 of FIG. 7, or the sensor control architecture600 of FIG. 9), or a portion thereof (e.g., if the computing system 800is used to implement/run the perception component 720 of FIG. 12, theperception component 730 of FIG. 13, or the perception component 740 ofFIG. 14), for example.

Each of the processor(s) 802 may be a programmable microprocessor thatexecutes software instructions (including the instructions 806) storedin the memory 804. Alternatively, one, some or all of the processor(s)802 may be other types of processors (e.g., ASICs, FPGAs, etc.). Thememory 804 may include one or more physical memory devices withnon-volatile memory. Any suitable memory type or types may be used, suchas ROM, solid-state drives (SSDs), hard disk drives (HDDs), and so on.The processor(s) 802 are coupled to the memory 804 via a bus or othernetwork 808. The network 808 may be a single wired network, or mayinclude any suitable number of wired and/or wireless networks. Forexample, the network 808 may be or include a controller area network(CAN) bus, a Local Interconnect Network (LNN) bus, and so on.

Also coupled to the network 808 are a vehicle control interface 810, apassenger interface 812, a sensor interface 814, and a network interface816. Each of the interfaces 810, 812, 814 and 816 may include one ormore processors (e.g., ASICs, FPGAs, microprocessors, etc.) and/or otherhardware, firmware and/or software to enable communication with systems,subsystems, devices, etc., that are external to the computing system800. In some embodiments (e.g., where the vehicle including thecomputing system 800 is not an autonomous vehicle), the vehicle controlinterface 810, the passenger interface 812, and/or the network interface816 may be excluded from the computing system 800.

In embodiments where the vehicle containing the computing system 800 isan autonomous vehicle, the vehicle control interface 810 may generallybe configured to provide control data generated by the processor(s) 802to the appropriate operational subsystems of the autonomous vehicle,such that the appropriate subsystems can effectuate driving decisionsmade by the processor(s) 802. Referring to FIG. 6, for example, thevehicle control interface 810 may provide the decisions 442 to theappropriate subsystem(s) (e.g., accelerator 340, brakes 342, andsteering mechanism 346 of FIG. 4A). In some embodiments, the vehiclecontrol interface 810 includes separate interface hardware, firmwareand/or software for different operational subsystems.

The passenger interface 812 is generally configured to provide alerts,warnings, notifications, and/or other information to one or morepassengers of the vehicle. In some embodiments where the vehicle is notfully autonomous (e.g., allowing human driving in at least some modesand/or situations), the interface 812 may specifically provide suchinformation to the driver (e.g., via dashboard indicators, etc.). Asjust one example, the passenger interface 812 may cause a display and/orspeaker in the vehicle to generate an alert when the processor(s) 802(executing the instructions 806) determine that a collision with anotherobject is likely. As another example, the passenger interface 802 maycause a display in the vehicle to show an estimated time of arrival(ETA) to passengers.

The sensor interface 814 is generally configured to convert raw sensordata from one or more sensors (e.g., lidar, camera, microphones, thermalimaging units, IMUs, etc.) to a format that is consistent with aprotocol of the network 808 and is recognized by one or more of theprocessor(s) 802. The sensor interface 814 may be coupled to the lidarsystem 200 of FIG. 2 or the lidar system 302 of FIG. 4A, for example,with the sensor interface 814 converting point cloud data to anappropriate format. In some embodiments, the sensor interface 814includes separate interface hardware, firmware and/or software for eachsensor and/or each sensor type. In embodiments where the instructions806 implement a sensor control architecture, the sensor interface 814also communicates desired sensor parameter settings (e.g., within sensorcontrol signals 132, 532 or 632 of FIG. 1, 7 or 9, respectively) to thesensor(s) being controlled.

The network interface 816 is generally configured to convert datareceived from one or more devices or systems external to the vehicle toa format that is consistent with a protocol of the network 808 and isrecognized by one or more of the processor(s) 802. If the vehicleincluding computing system 800 is an autonomous vehicle, for example, aremote mapping/navigation server may send mapping and navigation/routedata (e.g., mapping and navigation signals 432 of FIG. 6) to thecomputing system 800 via a cellular network interface of the networkinterface 816, while one or more peer vehicles (e.g., other autonomousvehicles) may send data (e.g., current positions of the other vehicles)to the computing system 800 via a WiFi network interface of the networkinterface 816. Other types of external data may also, or instead, bereceived via the network interface 816. For example, the computingsystem 800 may use the network interface 816 to receive datarepresenting rules or regulations (e.g., speed limits), object positions(e.g., road rails, overhanging signage, etc.), and/or other informationfrom various infrastructure devices or systems. In some embodiments, thenetwork interface 816 includes separate interface hardware, firmwareand/or software for different external sources.

The network 808 may also couple to other types of interfaces and/orcomponents not shown in FIG. 15. Moreover, it is understood that thecomputing system 800 represents just one possible configuration forsupporting the software architectures, components, functions, features,etc., described herein, and that others are also within the scope ofthis disclosure.

Example Methods for Controlling Sensors or Processing Sensor Data

FIG. 16 depicts an example method 900 for controlling at least onesensor of a vehicle (referred to as a “first sensor” for purposes ofFIG. 16). The first sensor may be a lidar device, a radar device, acamera, a thermal imaging device, or any other type of sensor which canbe focused on different areas of the environment. The method 900 may beimplemented/performed by the computing system 800 of FIG. 15 (e.g., bythe processor(s) 802 when executing the instructions 806 stored inmemory 804), for example, or by another suitable computing device orsystem.

At block 902, sensor data is received. The sensor data is data that wasgenerated by one or more sensors of the vehicle that is/are configuredto sense an environment through which the vehicle is moving (e.g., thesensor(s) 102 of FIG. 1). In some embodiments, the sensor data wasgenerated in whole or in part by the first sensor. In other embodiments,the sensor data was generated by at least a camera, and the first sensoris a lidar device that may or may not have contributed to the sensordata received at block 902.

At block 904, signals descriptive of a current state of the environmentare generated based on the sensor data received at block 902. Thesignals generated at block 904 may be the perception signals 106 of FIG.1, for example, and may be generated in the manner discussed above withreference to the perception component 104 of FIG. 1. In someembodiments, block 904 is not included in the method 900.

At block 906, one or more current and/or predicted positions of one ormore dynamic objects within the environment are identified, based on thesignals generated at block 904. Alternatively, if block 904 is omitted,the current and/or predicted positions may be identified based moredirectly on the sensor data received at block 902. The dynamic object(s)may be objects that are currently moving within the environment, orobjects within the environment that are capable of movement but notnecessarily in motion (e.g., a car at a stop light). In one embodiment,for example, block 906 includes determining that at least one object hasbeen classified as an object type that is known to be capable ofmovement, and identifying a current and/or predicted position of theobject(s). Alternatively, block 906 may include determining thatmovement has been tracked for at least one object, and identifying acurrent and/or predicted position of the object(s). In some embodimentsand/or scenarios, block 906 includes generating signals descriptive ofone or more future states of the environment based on the signalsgenerated at block 904, and then identifying one or more predictedpositions of one or more dynamic objects based on the signalsdescriptive of the future state(s). In still another embodiment (e.g.,if block 904 is omitted), block 906 may include applying rules,algorithms, or a machine learning model to raw sensor data in order todetermine that clumps or clusters of points in point cloud frames likelycorrespond to one or more dynamic objects, without necessarilyperforming any full perception functions on the sensor data.

At block 908, an area of focus of the first sensor is caused to beadjusted, based on the current and/or predicted positions of the dynamicobjects that was/were identified at block 906. For example, block 908may include generating a command and transmitting the command to thefirst sensor, or generating an analog control signal that is provided tothe first sensor, etc. The area of focus may be adjusted by adjusting afield of regard of the first sensor. For example, a vertical and/orhorizontal width of the field of regard may be decreased, and/or thecenter of the field of regard may be repositioned. Depending on theembodiment and scenario, the field of regard may be adjusted such thatit is centered on the current or predicted position of only a singledynamic object, and/or such that the vertical and/or horizontal width ofthe field of regard are prevented from being reduced to a level thatexcludes any of multiple dynamic objects. As another example, ifmultiple dynamic object positions were identified at block 906, thefield of regard may be centered and/or sized based on an area that wasidentified as having the highest density of dynamic objects. Block 908may also include causing the frame rate and/or the scan resolution ofthe first sensor to be increased, particularly if the area of focus isreduced in size. In some embodiments, the area of focus may be adjustedby adjusting a spatial distribution of scan lines produced by the firstsensor. For example, the scan lines may be spaced more closely across arange of elevation angles that corresponds to the position(s) of thedynamic object(s).

In some embodiments, the method 900 makes use of a machine learningbased attention model. For example, block 906 and/or block 908 may beperformed using such a model. In such an embodiment, the method 900 mayinclude one or more additional blocks in which the model is trained. Inone embodiment, the attention model is trained using reinforcementlearning, with rewards being provided based on the achievement of anumber of driving goals (e.g., not crashing, obeying rules of the road,etc.). In another embodiment, the attention model is trained using anevolutionary algorithm. If an evolutionary algorithm is used, it may bepreferable to train the attention model using simulation data that isgenerated as one or more simulated vehicles move through one or moresimulated environments. Using a simulated world to provide the trainingdata may provide a much richer set of training data, without requiringdata from real-world crashes or other negative outcomes.

In some embodiments, the attention model is trained using datacorresponding to a human (e.g., expert) driver. For example, the method900 may include training blocks in which data indicating visual focus(e.g., gaze direction) of a human driver during a real or simulateddriving trip is received, the received data is used to generate labelsfor a labeled data set, and supervised training of the attention modelis performed using the labeled data set.

FIG. 17 depicts another example method 920 for controlling at least onesensor of a vehicle (referred to as a “first sensor” for purposes ofFIG. 17). The first sensor may be a lidar device, a radar device, acamera, a thermal imaging device, or any other type of sensor which canbe focused on different areas of the environment. The method 920 may beimplemented/performed by the computing system 800 of FIG. 15 (e.g., bythe processor(s) 802 when executing the instructions 806 stored inmemory 804), for example, or by another suitable computing device orsystem.

At block 922, sensor data is received. The sensor data is data that wasgenerated by one or more sensors of the vehicle that is/are configuredto sense an environment through which the vehicle is moving (e.g., thesensor(s) 602 of FIG. 9). In some embodiments, the sensor data wasgenerated in whole or in part by the first sensor. In other embodiments,the sensor data was generated by at least a camera, and the first sensoris a lidar device that may or may not have contributed to the sensordata received at block 922.

At block 924, signals descriptive of a current state of the environmentare generated based on the sensor data received at block 922. Thesignals generated at block 924 may be the perception signals 606 of FIG.9, for example, and may be generated in the manner discussed above withreference to the perception component 604 of FIG. 9. In someembodiments, block 924 is not included in the method 920.

At block 926, one or more sensor settings are determined using anattention model and based on the signals generated at block 924.Alternatively, if block 924 is omitted, the sensor setting(s) may bedetermined based more directly on the sensor data received at block 922.The sensor settings correspond to one or more sensor parameters of thefirst sensor, including at least one sensor parameter that defines anarea of focus for the first sensor (e.g., defining a spatialdistribution of scan lines produced by the first sensor, defining ahorizontal width of a field of regard of the first sensor, defining avertical width of the field of regard, and/or defining a center of thefield of regard). In some embodiments, the sensor settings alsocorrespond to other sensor parameters that do not define the area offocus (e.g., parameters defining a scan frame and/or a scan resolutionof the first sensor, or an exposure setting of the first sensor, etc.).In some embodiments and/or scenarios, block 926 includes generatingsignals descriptive of one or more future states of the environmentbased on the signals generated at block 924, and then determining one ormore sensor settings based on the signals descriptive of the futurestate(s).

The attention model is a model that was trained using a machine learningtechnique. In one embodiment, the attention model is trained usingreinforcement learning, with rewards being provided based on theachievement of a number of driving goals (e.g., not crashing, obeyingrules of the road, etc.). In another embodiment, the attention model istrained using an evolutionary algorithm. If an evolutionary algorithm isused, it may be preferable to train the attention model using simulationdata that is generated as one or more simulated vehicles move throughone or more simulated environments. Using a simulated world to providethe training data may provide a much richer set of training data,without requiring data from real-world crashes or other negativeoutcomes.

In some embodiments, the attention model is trained using datacorresponding to a human (e.g., expert) driver. For example, the method920 may include training blocks in which data indicating visual focus(e.g., gaze direction) of a human driver during a real or simulateddriving trip is received, the received data is used to generate labelsfor a labeled data set, and supervised training of the attention modelis performed using the labeled data set.

In still other embodiments, the attention model is trained to identifysalient regions on which to focus the first sensor using multiple,digital representations of vehicle environments (e.g., point cloudframes or camera images) and a number of labels. Each of the labels mayindicate a correct segmentation of, and/or a correct classification for,at least one object within a respective subset of the digitalrepresentations. In some embodiments where the attention model istrained in this manner, the sensor data received at block 922 includes adigital representation of the current environment, and at block 926 theattention model determines the sensor setting(s) at least in part bycausing the first sensor to iteratively refocus on different salientregions that were identified by the attention model. For example, theattention model may determine the sensor setting(s) (e.g., settings forone or more parameters defining a spatial distribution of scan linesproduced by the first sensor, and/or a field of regard of the firstsensor) by generating a heat map indicating salient regions within thedigital representation of the environment, and then causing the firstsensor to iteratively refocus on different salient regions indicated bythe heat map.

At block 928, the sensor parameter(s) of the first sensor is/are causedto be adjusted in accordance with the sensor settings determined toblock 926. For example, block 928 may include generating a command andtransmitting the command to the first sensor, or generating an analogcontrol signal that is provided to the first sensor, etc.

In some embodiments, the method 920 includes additional blocks (notshown in FIG. 17) in which a “preliminary” sensor setting is determinedfor, and applied to, the first sensor (e.g., prior to block 922 and/orblock 924). For example, in a first block, a heuristic technique (e.g.,any of those described above in connection with FIG. 1, 10, 11 or 16)may be used to determine an initial area of focus for the first sensor.In a second block, the first sensor may be caused to be adjusted inaccordance with the determined preliminary sensor setting (e.g., in amanner similar to that described above in connection with block 928).Thereafter, the learning-based attention model may be used to refine orotherwise change the area of focus in accordance with blocks 922 through928.

FIG. 18 depicts an example method 940 for configuring a perceptioncomponent of a vehicle having one or more sensors that are configured tosense an environment through which the vehicle (e.g., an autonomousvehicle) is moving (e.g., the sensor(s) 726 of FIG. 12). The method 940may be implemented/performed by the computing system 800 of FIG. 15(e.g., by the processor(s) 802 when executing the instructions 806stored in memory 804), for example, or by another suitable computingdevice or system.

At block 942, a first set of training data is generated. The first setof training data includes sensor data (“first sensor data”) thatcorresponds to a first setting and is indicative of vehicle environmentsthat may be real or simulated. The first set of training data alsoincludes an indicator of the first setting.

At block 944, a second set of training data is generated. The second setof training data includes additional sensor data (“second sensor data”)that corresponds to a second setting and is indicative of vehicleenvironments that may be real or simulated. The second set of trainingdata also includes an indicator of the second setting.

The first and second settings may define different spatial distributionof scan lines within a point cloud (e.g., lidar or radar). For example,the first setting may result in a uniform distribution of scan lines,while the second setting may result in scan lines that are arrangedaccording to a sampling of a continuous mathematical distribution (e.g.,a Gaussian distribution). In some embodiments, at least one of thesettings defines a spatial distribution of scan lines that includes aplurality of non-overlapping regions, each having a different uniformspatial distribution. For example, a top portion of a field of regardmay include a first uniform spacing of scan lines (e.g., covering 8degrees of elevation), a middle portion may include a second uniformspacing of scan lines (e.g., covering 2 degrees of elevation), and abottom portion may include a third uniform spacing of scan lines (e.g.,covering 4 degrees of elevation).

At block 946, the perception component is trained. Block 946 includestraining a machine learning based model (e.g., a single neural network)of the perception component using the first and second sets of trainingdata generated at blocks 942 and 944, respectively. Once trained, theperception component is configured to generate signals descriptive of acurrent state of the environment, as the vehicle moves through theenvironment, by processing sensor data generated by the one or moresensors, as well as one or more indicators of which settings (of the oneor more sensor parameters) correspond to which portions of the generatedsensor data. In some embodiments where the first and second settingscorrespond to different spatial distributions of scan lines, forexample, the trained perception component is configured to generatesignals descriptive of the current state of the environment byprocessing point clouds generated by the one or more sensors, as well asone or more indicators of which spatial distributions correspond towhich of those point clouds.

The method 940 may also include a number of blocks corresponding tooperation of the trained perception component. For example, a first setof additional blocks may include receiving first sensor data that wasgenerated by a first sensor of the one or more sensors at a first time,receiving a first indicator indicating that the first sensor datacorresponds to the first setting, and generating, by processing thefirst sensor data and the first indicator using the trained machinelearning based model, first signals descriptive of the current state ofthe environment. Furthermore, a second set of additional blocks mayinclude receiving second sensor data generated by the first sensor (or asecond sensor of the one or more sensors) at a second time, receiving asecond indicator indicating that the second sensor data corresponds tothe second setting, and generating, by processing the second sensor dataand the second indicator using the trained machine learning based model,second signals descriptive of the current state of the environment.

FIG. 19 depicts an example method 960 for controlling a vehicle based onsensor data having variable parameter settings. The method 960 may beimplemented/performed by the computing system 800 of FIG. 15 (e.g., bythe processor(s) 802 when executing the instructions 806 stored inmemory 804), for example, or by another suitable computing device orsystem.

At block 962, sensor data is received. The sensor data is data that wasgenerated by a sensor (e.g., sensor 736A of FIG. 13) configured with afirst sensor parameter setting. If the sensor data includes a pointcloud from a lidar or radar device, for example, the setting may be onethat defines a first spatial distribution of scan lines (e.g., uniform,Gaussian, etc.) produced by the lidar or radar device when generatingthe point cloud. As another example, if the sensor data includes acamera image, the setting may be a particular exposure setting for thecamera that captured the image. Still other examples include settingsthat define a particular frame rate at which a point cloud is captured,settings that define one or more characteristics of a field of regard ofa point cloud (e.g., center, width/height, etc.), and so on.

At block 964, an indicator that specifies the first sensor parametersetting is received. The indicator may be received from the sensor thatgenerated the sensor data, for example, or from a sensor controlcomponent (e.g., the sensor control component 130 of FIG. 1), etc.

At block 966, a neural network is selected, based on the indicatorreceived at block 964, from among a plurality of available neuralnetworks associated with a perception component of the vehicle. Morespecifically, block 966 may include selecting a neural network that wastrained using the first sensor parameter setting. Each of the availableneural networks was trained using training data corresponding to adifferent sensor parameter setting. For example, each neural network mayhave been trained using point clouds having different scan linedistributions, or camera images having different exposure settings, etc.

At block 968, signals descriptive of the current state of theenvironment are generated using the neural network selected at block966, and based on the sensor data received at block 962. The generatedsignals may be similar to the perception signals 408 of FIG. 6, forexample.

At block 970, driving decisions are generated based on the signalsgenerated at block 968. The driving decisions may be at the maneuverlevel (e.g., “move one lane to the right”) or at the operationalparameter level (e.g., “increase speed by 3 miles per hour and steer 5degrees left). The driving decisions may be similar to the decisions 442of FIG. 6, and/or may be generated by a component similar to the motionplanner 440 of FIG. 6, for example. In some embodiments and/orscenarios, block 970 includes generating signals descriptive of one ormore future states of the environment based on the signals generated atblock 968, and then determining one or more sensor settings based onboth the signals descriptive of the current state and the signalsdescriptive of the future state(s).

At block 972, one or more operational subsystems of the vehicle (e.g.,the accelerator 340, brakes 342, and/or steering mechanism 346 of FIG.4A) are caused to maneuver the vehicle in accordance with the drivingdecisions generated at block 970. Block 972 may include generating oneor more commands and transmitting the command(s) to the appropriatesubsystems, for example.

FIG. 20 depicts an example method 980 for processing point clouds havingvariable spatial distributions of scan lines. The method 980 may beimplemented/performed by the computing system 800 of FIG. 15 (e.g., bythe processor(s) 802 when executing the instructions 806 stored inmemory 804), for example, or by another suitable computing device orsystem.

At block 982, a point cloud frame is received. The point cloud frame isone that was generated by a sensor configured to sense the environmentthrough which a vehicle is moving (e.g., the sensor 742A of FIG. 14).The point cloud frame includes scan lines that are arranged according toa particular spatial distribution (e.g., uniform, or Gaussian,multimodal, arbitrary, etc.).

At block 984, one of two operations may occur, depending on theembodiment. In a first embodiment, an enhanced point cloud frame isgenerated (e.g., using camera image data, and/or other sensor data),where the resolution of the image data is such that the enhanced pointcloud includes a larger number of points than the received point cloudframe (e.g., to fill in the “gaps” between the scan lines of the pointcloud received at block 982). For example, the method 980 may include anadditional block in which camera image data, generated by a cameradisposed on or in the vehicle, is received, and block 984 may includegenerating the enhanced point cloud frame using the received cameraimage data. The enhanced point cloud may be generated by transformingcamera image data to points in a three-dimensional space (e.g., toapproximate an inverse of the transformation that occurs when the cameraprojects points in real-world three-dimensional space onto atwo-dimensional image plane), and generating the enhanced point cloudusing the received point cloud and the points in the three-dimensionalspace, for example.

In a second embodiment, block 984 instead includes constructing athree-dimensional mesh based on points of the point cloud frame receivedat block 982. For example, block 984 may include applying suitable rulesto form triangles from subsets of the points of the received point cloudframe. Once constructed, the triangle mesh may form a virtual surface.

At block 986, a normalized point cloud frame is generated. Thenormalized point cloud frame is generated by performing an interpolationfunction on either the enhanced point cloud frame (in the firstembodiment described above in connection with block 984), or on avirtual surface provided by the three-dimensional mesh (in the secondembodiment described above in connection with block 984). In the formerembodiment, for example, the larger number of points provided in theenhanced point cloud may allow points to be sampled in a manner that atleast approximates some reference scan line distribution. The“reference” distribution (e.g., a uniform distribution) may be one thata perception component was trained (or otherwise designed) to process,for example. In the latter embodiment, the virtual surface provided bythe mesh (e.g., the collection of planar surfaces corresponding totriangles of the mesh) may allow points to be sampled in a manner thatat least approximates the reference scan line distribution.

At block 988, signals descriptive of a current state of the environmentare generated, using the normalized point cloud frame that was generatedat block 986. The generated signals may be similar to the perceptionsignals 752 of FIG. 14, for example. The normalized point cloud may beused for one or more perception functions. For example, the normalizedpoint cloud may be partitioned into a plurality of portions inaccordance with probable boundaries between separate physical objects(for segmentation), with at least some of those portions then beingclassified according to object types.

FIG. 21 depicts another example method 1000 for processing point cloudshaving variable spatial distributions of scan lines. The method 1000 maybe implemented/performed by the computing system 800 of FIG. 15 (e.g.,by the processor(s) 802 when executing the instructions 806 stored inmemory 804), for example, or by another suitable computing device orsystem.

At block 1002, a point cloud portion is received. The point cloudportion corresponds to a particular object in an environment throughwhich a vehicle is moving. The point cloud portion is a part of a pointcloud that was generated by a sensor configured to sense the environmentthrough which a vehicle is moving (e.g., the sensor 742A of FIG. 14).The point cloud portion includes scan lines that are arranged accordingto a particular spatial distribution (e.g., uniform, or Gaussian,multimodal, arbitrary, etc.). In some embodiments, the method 1000 alsoincludes one or more blocks in which the point cloud portion isinitially identified or generated (e.g., by partitioning a point cloudframe into portions in accordance with probable boundaries betweenseparate physical objects, in a segmentation function of a perceptioncomponent).

At block 1004, a voxel grid, corresponding to the point cloud portionreceived at block 1002, is constructed. The voxel grid includes aplurality of volumes in a stacked, three-dimensional arrangement. Block1004 includes determining an initial classification of the object, andsetting one or more parameters of the voxel grid based on that initialclassification. The initial classification may be a general class of theobject, or an initial prediction (“best guess”) that might be laterconfirmed or refuted, etc. The parameter(s) that is/are set may includeone, two or three dimensions of a “leaf size” that defines the size ofthe real-world volume corresponding to each and every volume in thevoxel grid, for example. In one embodiment, a database stores data thatassociates different leaf sizes with different object classifications(or, with different combinations/pairs of object classification andspatial scan line distribution), and block 1004 includes accessing thedatabase to determine the leaf size. Block 1004 further includesassociating each volume of the voxel grid with an attribute thatspecifies how many points, from the point cloud portion, fall withinthat volume.

At block 1006, signals descriptive of a current state of the environmentare generated using the voxel grid constructed at block 1004. Thegenerated signals may be similar to the perception signals 752 of FIG.14, for example. The voxel grid may be used for one or more perceptionfunctions. For example, the voxel grid may be analyzed to classify theobject corresponding to the voxel grid. If the initial classificationwas a general class, for instance, block 1006 may include determining afinal classification of the object based on the constructed voxel grid.If the initial classification was a preliminary prediction, block 1006may instead include confirming or refuting that prediction.

FIG. 22 depicts still another example method 1010 for processing pointclouds having variable spatial distributions of scan lines. The method1010 may be implemented/performed by the computing system 800 of FIG. 15(e.g., by the processor(s) 802 when executing the instructions 806stored in memory 804), for example, or by another suitable computingdevice or system.

At block 1012, a point cloud frame is received. The point cloud frame isone that was generated by a sensor configured to sense the environmentthrough which a vehicle is moving (e.g., the sensor 742A of FIG. 14).The point cloud frame includes a plurality of points that are arrangedin a plurality of scan lines, with the scan lines being arrangedaccording to a particular spatial distribution (e.g., uniform, orGaussian, multimodal, arbitrary, etc.), and with each of the pointshaving associated two-dimensional (or “2D”) coordinates representing ahorizontal and vertical position (e.g., azimuth angle and elevationangle) within the point cloud frame, as well as at least one associatedparameter value (e.g., depth or intensity).

At block 1014, a normalized point cloud frame is generated, at least inpart by adding to the normalized frame a plurality of interpolatedpoints that were not present in the point cloud frame received at block1012. Block 1014 includes a number of operations, including at leastblock 1015 and block 1016, that may be repeated (sequentially and/or inparallel) for each of the interpolated points that is added to thenormalized point cloud frame.

At block 1015, for a given interpolated point, one or more neighboringpoints are identified (from among the points in the received point cloudframe) that have two-dimensional coordinates within a threshold distanceof two-dimensional coordinates for the interpolated point (e.g.,neighboring points having a distance, as calculated according toEquation 1 above, that is less than the threshold distance). Thetwo-dimensional coordinates (e.g., azimuth angle and elevation angle)for the interpolated point may be determined based on a desired scanline distribution (e.g., a uniform or other scan line distribution thata perception component is trained or otherwise designed to interpret),for example.

At block 1016, an estimated parameter value (e.g., depth or intensity)is calculated for the interpolated point. The calculation may use (i.e.,be a function of), for each neighboring point that was identified atblock 1015 as being within the threshold distance, (1) the distancebetween the two-dimensional coordinates for the interpolated point andthe two-dimensional coordinates associated with the neighboring point,and (2) the parameter value associated with the neighboring point. Theestimated parameter value may be calculated by weighting the parametervalues associated with identified neighboring points according totwo-dimensional distance, e.g., by applying Equations 2 through 4 above,or using another suitable set of calculations. It is understood thatmultiple parameter values (e.g., both depth and intensity) may beestimated for each interpolated point.

At block 1018, signals descriptive of a current state of the vehicleenvironment are generated, using the normalized point cloud frame thatwas generated at block 1014. The generated signals may be similar to theperception signals 752 of FIG. 14, for example. The normalized pointcloud may be used for one or more perception functions. For example, thenormalized point cloud may be partitioned into a plurality of portionsin accordance with probable boundaries between separate physical objects(for segmentation), with at least some of those portions then beingclassified according to object types.

FIG. 23 depicts another example method 1020 for controlling a sensor ofa vehicle (referred to as a “first sensor” for purposes of FIG. 23). Thefirst sensor may be a lidar device, a radar device, a camera, a thermalimaging device, or any other type of sensor which can be focused ondifferent areas of the environment. The method 1020 may beimplemented/performed by the computing system 800 of FIG. 15 (e.g., bythe processor(s) 802 when executing the instructions 806 stored inmemory 804), for example, or by another suitable computing device orsystem.

At block 1022, sensor data is received. The sensor data is data that wasgenerated by one or more sensors of the vehicle that is/are configuredto sense an environment through which the vehicle is moving (e.g., thesensor(s) 602 of FIG. 9). In some embodiments, the sensor data wasgenerated in whole or in part by the first sensor. In other embodiments,the sensor data was generated by at least a camera, and the first sensoris a lidar device that may or may not have contributed to the sensordata received at block 1022. Other combinations of sensors are alsopossible.

At block 1024, one or more road portions, along which the vehicle isexpected travel, are identified based on at least a portion of thesensor data received at block 1022. Block 1024 may include identifyingthe road portion(s) using segmentation and classification functions of aperception component (e.g., the functions of segmentation module 610 andclassification module 612 of FIG. 9).

At block 1026, a configuration of the road portion(s) that was/wereidentified at block 1024 is determined. Block 1026 includes determininga slope of at least one of the identified road portions, and may alsoinclude determining other aspects of the configuration, such as theamount that (and/or the manner in which) the road portion(s) turn to theleft and/or right.

At block 1028, an elevation of the field of regard of the first sensoris determined such that one or more visibility criteria are satisfied,by analyzing at least the configuration determined at block 1026. Forexample, the elevation may be one that maximizes a sensing distance ofthe first sensor in a direction along which the vehicle is expected totravel. The sensing distance is generally limited by the range of thefirst sensor, but may be maximized by choosing an elevation that doesnot cause the first sensor to “look” too high (e.g., into the sky) ortoo low (e.g., into the road a relatively short distance in front of thevehicle). In some scenarios, this may result in choosing an elevationthat causes the first sensor to focus on, or near to, the horizon. Insome embodiments, the method 1020 also includes determining (e.g., byanalyzing the configuration determined at block 1026) a horizontalposition (e.g., azimuthal angle) of a field of regard of the firstsensor.

At block 1030, the first sensor is caused to be adjusted in accordancewith the elevation (and possibly horizontal position) determined atblock 1028. Depending on the embodiment, the adjustment may be made bymechanically moving the entire sensor, and/or by mechanically moving oneor more sensor components (e.g., one or more mirrors of a lidar device),for example.

In some embodiments, the inability to satisfy certain visibilitycriteria may cause the vehicle to be slowed down or otherwise operatedin a safer manner. For example, the method 1020 may include a firstadditional block in which it is determined that, at the elevationdetermined at block 1028, the sensing distance of the first sensor isless than some threshold distance (e.g., 50 meters, 20 meters, etc.). Ina second additional block, and in response to that determination, aspeed of the vehicle may be caused to decrease (e.g., by sending acommand to the accelerator 340 of FIG. 4A).

In one embodiment, the one or more sensors include one or more (or twoor more, etc.) of an inertial measurement unit (IMU), a lidar device anda camera. For example, the one or more sensors may include an IMU, andthe method 1020 may further determine, by analyzing a portion of thesensor data corresponding to the IMU, a slope of a road portion that thevehicle is currently traversing. In such an embodiment, block 1028 mayfurther include analyzing the slope of that road portion to determinethe elevation. In some embodiments, GPS (or other satellite positioningtechnology) elevation data is also, or instead, used to determine theslope or orientation of the road portion that the vehicle is currentlytraversing.

FIG. 24 depicts another example method 1040 for controlling at least onesensor of a vehicle (referred to as a “first sensor” for purposes ofFIG. 17). The first sensor may be a lidar device, a radar device, or anyother device capable of sensing the vehicle environment by producingscan lines arranged according to some spatial distribution. The method1040 may be implemented/performed by the computing system 800 of FIG. 15(e.g., by the processor(s) 802 when executing the instructions 806stored in memory 804), for example, or by another suitable computingdevice or system.

At block 1042, sensor data is received. The sensor data is data that wasgenerated by one or more sensors of the vehicle that is/are configuredto sense an environment through which the vehicle is moving (e.g., thesensor(s) 502 of FIG. 7). In some embodiments, the sensor data wasgenerated in whole or in part by the first sensor. In other embodiments,the sensor data was generated in whole or in part by a camera.

At block 1044, signals descriptive of a current state of the environmentare generated based on the sensor data received at block 1042. Thegenerated signals may be similar to the perception signals 506 of FIG.7. For example, block 1044 may include partitioning a digitalrepresentation of the environment into a plurality of portions inaccordance with probable boundaries between separate physical objects(the digital representation including, or being derived from, thereceived sensor data), classifying at least some of the plurality ofportions according to object types, and tracking movement of classifiedobjects over time. In some embodiments, the method 1040 does not includeblock 1044.

At block 1046, one or more areas of interest in the environment areidentified based on the signals generated at block 1044. Alternatively,if block 1044 is omitted, the area(s) of interest may be determinedbased more directly on the sensor data received at block 1042. In oneembodiment, block 1046 includes identifying, based on the signalsgenerated at block 1044, an area of road in front of the vehicle, and/orthe horizon (or a “local” horizon) in front of the vehicle, for example,and identifying the area(s) of interest based on a position of that areaof road and/or the horizon. In another embodiment, in which the one ormore sensors include an IMU, block 1046 includes determining a slope ofa road on which the vehicle is currently moving based on inertia datagenerated by the IMU, and identifying the area(s) of interest based onthat slope. In some embodiments and/or scenarios, block 1046 includesgenerating signals descriptive of one or more future states of theenvironment based on the signals generated at block 1044, and thenidentifying one or more areas of interest based on both the signalsdescriptive of the signals descriptive of the future state(s).

At block 1048, the spatial distribution of the scan lines produced bythe first sensor is caused to be adjusted, based on the area(s) ofinterest identified at block 1046. For example, block 1048 may includegenerating a command and transmitting the command to the first sensor.Generally, the scan lines may be made more dense at one or more of theidentified areas of interest (e.g., for a horizontal scan line pattern,by decreasing the elevation angle between scan lines in those areas).For example, block 1048 may include causing a center and/or size of afield of regard of the first sensor to be adjusted.

In one embodiment and scenario where block 1046 includes identifying anarea of primary interest (e.g., an area that includes a nearby vehicle,pedestrian, etc.), block 1048 may include causing the first sensor togenerate a spatial distribution of scan lines that has a maximum densitywithin the area of primary interest. In some embodiments, if two or morenon-contiguous areas of interest are identified at block 1046, block1048 may include causing the first sensor to generate a multimodalspatial distribution of scan lines, having local maximum densitieswithin each of those areas of interest.

In still other embodiments, block 1046 includes identifying an areahaving a high density of dynamic objects, and block 1048 includescausing the first sensor to generate a spatial distribution of scanlines that has a local or global maximum density within the area havingthe high density of dynamic objects. Alternatively, block 1046 mayinclude identifying a plurality of non-contiguous areas of interest(e.g., a first area that encompasses an area of ground in front of thevehicle, a second area that is higher than the first area and includesat least a portion of the horizon in front of the vehicle, and a thirdarea that is higher than the second area), and block 1048 may includecausing the first sensor to generate scan lines that are divided amongthe plurality of non-contiguous areas of interest according to apredefined ratio (e.g., for the above example, having the densest linesin the second area, and the least dense lines in the third area). Insome embodiments, block 1048 includes causing the first sensor togenerate a distribution of scan lines that samples a continuousmathematical function (e.g., a Gaussian function), with a peak of thecontinuous mathematical function corresponding to one of the identifiedareas of interest.

In some embodiments, the method 1040 makes use of a machine learningbased attention model. For example, block 1046 and/or block 1048 may beperformed using such a model. In such an embodiment, the method 1040 mayinclude one or more additional blocks in which the model is trained. Inone embodiment, the attention model is trained using reinforcementlearning, with rewards being provided based on the achievement of anumber of driving goals (e.g., not crashing, obeying rules of the road,etc.). In another embodiment, the attention model is trained using anevolutionary algorithm. If an evolutionary algorithm is used, it may bepreferable to train the attention model using simulation data that isgenerated as one or more simulated vehicles move through one or moresimulated environments. Using a simulated world to provide the trainingdata may provide a much richer set of training data, without requiringdata from real-world crashes or other negative outcomes.

In some embodiments, the attention model is trained using datacorresponding to a human (e.g., expert) driver. For example, the method1040 may include training blocks in which data indicating visual focus(e.g., gaze direction) of a human driver during a real or simulateddriving trip is received, the received data is used to generate labelsfor a labeled data set, and supervised training of the attention modelis performed using the labeled data set.

GENERAL CONSIDERATIONS

In some cases, a computing device may be used to implement variousmodules, circuits, systems, methods, or algorithm steps disclosedherein. As an example, all or part of a module, circuit, system, method,or algorithm disclosed herein may be implemented or performed by ageneral-purpose single- or multi-chip processor, a digital signalprocessor (DSP), an ASIC, a FPGA, any other suitable programmable-logicdevice, discrete gate or transistor logic, discrete hardware components,or any suitable combination thereof. A general-purpose processor may bea microprocessor, or, any conventional processor, controller,microcontroller, or state machine. A processor may also be implementedas a combination of computing devices, e.g., a combination of a DSP anda microprocessor, a plurality of microprocessors, one or moremicroprocessors in conjunction with a DSP core, or any other suchconfiguration.

In particular embodiments, one or more implementations of the subjectmatter described herein may be implemented as one or more computerprograms (e.g., one or more modules of computer-program instructionsencoded or stored on a computer-readable non-transitory storage medium).As an example, the steps of a method or algorithm disclosed herein maybe implemented in a processor-executable software module which mayreside on a computer-readable non-transitory storage medium. Inparticular embodiments, a computer-readable non-transitory storagemedium may include any suitable storage medium that may be used to storeor transfer computer software and that may be accessed by a computersystem. Herein, a computer-readable non-transitory storage medium ormedia may include one or more semiconductor-based or other integratedcircuits (ICs) (such, as for example, field-programmable gate arrays(FPGAs) or application-specific ICs (ASICs)), hard disk drives (HDDs),hybrid hard drives (HHDs), optical discs (e.g., compact discs (CDs),CD-ROM, digital versatile discs (DVDs), blue-ray discs, or laser discs),optical disc drives (ODDs), magneto-optical discs, magneto-opticaldrives, floppy diskettes, floppy disk drives (FDDs), magnetic tapes,flash memories, solid-state drives (SSDs), RAM, RAM-drives, ROM, SECUREDIGITAL cards or drives, any other suitable computer-readablenon-transitory storage media, or any suitable combination of two or moreof these, where appropriate. A computer-readable non-transitory storagemedium may be volatile, non-volatile, or a combination of volatile andnon-volatile, where appropriate.

In some cases, certain features described herein in the context ofseparate implementations may also be combined and implemented in asingle implementation. Conversely, various features that are describedin the context of a single implementation may also be implemented inmultiple implementations separately or in any suitable sub-combination.Moreover, although features may be described above as acting in certaincombinations and even initially claimed as such, one or more featuresfrom a claimed combination may in some cases be excised from thecombination, and the claimed combination may be directed to asub-combination or variation of a sub-combination.

While operations may be depicted in the drawings as occurring in aparticular order, this should not be understood as requiring that suchoperations be performed in the particular order shown or in sequentialorder, or that all operations be performed. Further, the drawings mayschematically depict one more example processes or methods in the formof a flow diagram or a sequence diagram. However, other operations thatare not depicted may be incorporated in the example processes or methodsthat are schematically illustrated. For example, one or more additionaloperations may be performed before, after, simultaneously with, orbetween any of the illustrated operations. Moreover, one or moreoperations depicted in a diagram may be repeated, where appropriate.Additionally, operations depicted in a diagram may be performed in anysuitable order. Furthermore, although particular components, devices, orsystems are described herein as carrying out particular operations, anysuitable combination of any suitable components, devices, or systems maybe used to carry out any suitable operation or combination ofoperations. In certain circumstances, multitasking or parallelprocessing operations may be performed. Moreover, the separation ofvarious system components in the implementations described herein shouldnot be understood as requiring such separation in all implementations,and it should be understood that the described program components andsystems may be integrated together in a single software product orpackaged into multiple software products.

Various implementations have been described in connection with theaccompanying drawings. However, it should be understood that the figuresmay not necessarily be drawn to scale. As an example, distances orangles depicted in the figures are illustrative and may not necessarilybear an exact relationship to actual dimensions or layout of the devicesillustrated.

The scope of this disclosure encompasses all changes, substitutions,variations, alterations, and modifications to the example embodimentsdescribed or illustrated herein that a person having ordinary skill inthe art would comprehend. The scope of this disclosure is not limited tothe example embodiments described or illustrated herein. Moreover,although this disclosure describes or illustrates respective embodimentsherein as including particular components, elements, functions,operations, or steps, any of these embodiments may include anycombination or permutation of any of the components, elements,functions, operations, or steps described or illustrated anywhere hereinthat a person having ordinary skill in the art would comprehend.

The term “or” as used herein is to be interpreted as an inclusive ormeaning any one or any combination, unless expressly indicated otherwiseor indicated otherwise by context. Therefore, herein, the expression “Aor B” means “A, B, or both A and B.” As another example, herein, “A, Bor C” means at least one of the following: A; B; C; A and B; A and C; Band C; A, B and C. An exception to this definition will occur if acombination of elements, devices, steps, or operations is in some wayinherently mutually exclusive.

As used herein, words of approximation such as, without limitation,“approximately, “substantially,” or “about” refer to a condition thatwhen so modified is understood to not necessarily be absolute or perfectbut would be considered close enough to those of ordinary skill in theart to warrant designating the condition as being present. The extent towhich the description may vary will depend on how great a change can beinstituted and still have one of ordinary skill in the art recognize themodified feature as having the required characteristics or capabilitiesof the unmodified feature. In general, but subject to the precedingdiscussion, a numerical value herein that is modified by a word ofapproximation such as “approximately” may vary from the stated value by±0.5%, ±1%, ±2%, ±3%, ±4%, ±5%, ±10%, ±12%, or ±15%.

As used herein, the terms “first,” “second,” “third,” etc. may be usedas labels for nouns that they precede, and these terms may notnecessarily imply a particular ordering (e.g., a particular spatial,temporal, or logical ordering). As an example, a system may be describedas determining a “first result” and a “second result,” and the terms“first” and “second” may not necessarily imply that the first result isdetermined before the second result.

As used herein, the terms “based on” and “based at least in part on” maybe used to describe or present one or more factors that affect adetermination, and these terms may not exclude additional factors thatmay affect a determination. A determination may be based solely on thosefactors which are presented or may be based at least in part on thosefactors. The phrase “determine A based on B” indicates that B is afactor that affects the determination of A. In some instances, otherfactors may also contribute to the determination of A. In otherinstances, A may be determined based solely on B.

What is claimed is:
 1. A method for controlling at least a first sensorof a vehicle, wherein the first sensor senses an environment throughwhich the vehicle is moving by producing a plurality of scan linesarranged according to a spatial distribution, the method comprising:receiving sensor data generated by one or more sensors, wherein the oneor more sensors are configured to sense the environment through whichthe vehicle is moving; identifying, by one or more processors and basedon the received sensor data, one or more areas of interest in theenvironment; and causing, by one or more processors and based on theareas of interest, the spatial distribution of the plurality of scanlines produced by the first sensor to be adjusted.
 2. The method ofclaim 1, wherein identifying the one or more areas of interest includes:generating, based on the received sensor data, signals descriptive of acurrent state of the environment; and identifying, based on the signalsdescriptive of the current state of the environment, the one or moreareas of interest.
 3. The method of claim 2, wherein generating thesignals descriptive of the current state of the environment includes:partitioning a digital representation of the environment into aplurality of portions in accordance with probable boundaries betweenseparate physical objects, the digital representation including, orbeing derived from, the received sensor data; classifying at least someof the plurality of portions according to object types; and trackingmovement of classified objects over time.
 4. The method of claim 3,wherein identifying the areas of interest includes: identifying, basedon the signals descriptive of the current state of the environment, oneor more current and/or predicted positions of one or more dynamicobjects that are currently moving, or are capable of movement, withinthe environment; and identifying the areas of interest based on thecurrent and/or predicted positions of the dynamic objects.
 5. The methodof claim 2, wherein identifying the areas of interest includes:identifying, based on the signals descriptive of the current state ofthe environment, an area of road in front of the vehicle and/or ahorizon in front of the vehicle; and identifying the areas of interestbased on a position of the area of road and/or the horizon.
 6. Themethod of claim 2, wherein identifying, based on the signals descriptiveof the current state of the environment, the one or more areas ofinterest includes: generating, based on the signals descriptive of thecurrent state of the environment, signals descriptive of one or morefuture states of the environment; and identifying, based on the signalsdescriptive of one or more future states of the environment, the one ormore areas of interest.
 7. The method of claim 1, wherein the one ormore sensors include an inertial measurement unit configured to generateinertia data, and wherein identifying the areas of interest includes:determining, based on the inertia data, a slope of a road on which thevehicle is moving; and identifying the areas of interest based on theslope of the road.
 8. The method of claim 1, wherein: identifying theareas of interest includes identifying an area of primary interest; andcausing the spatial distribution of the plurality of scan lines producedby the first sensor to be adjusted includes causing the first sensor togenerate a spatial distribution of scan lines that has a maximum densitywithin the area of primary interest.
 9. The method of claim 1, wherein:identifying the one or more one or more areas of interest includesidentifying two or more non-contiguous areas of interest; and causingthe spatial distribution of the plurality of scan lines produced by thefirst sensor to be adjusted includes causing the first sensor togenerate a multimodal spatial distribution of scan lines that has localmaximum densities within each of the non-contiguous areas of interest.10. The method of claim 1, wherein: identifying the areas of interestincludes identifying an area having a high density of dynamic objects;and causing the spatial distribution of the plurality of scan producedby the first sensor to be adjusted includes causing the first sensor togenerate a spatial distribution of scan lines that has a local or globalmaximum density within the area having the high density of dynamicobjects.
 11. The method of claim 1, wherein: identifying the areas ofinterest includes identifying a plurality of non-contiguous areas ofinterest; and causing the spatial distribution of the plurality of scanlines produced by the first sensor to be adjusted includes causing thefirst sensor to generate scan lines that are divided among the pluralityof non-contiguous areas of interest according to a predefined ratio. 12.The method of claim 1, wherein: identifying the areas of interestincludes identifying a first area that encompasses an area of ground infront of the vehicle, identifying a second area that is higher than thefirst area and includes at least a portion of a horizon in front of thevehicle, and identifying a third area that is higher than the secondarea; and causing the spatial distribution of the plurality of scanlines produced by the first sensor to be adjusted includes causing thefirst sensor to generate a spatial distribution of scan lines thatincludes a first number of the plurality of scan lines in the firstarea, a second number of the plurality of scan lines in the second area,and a third number of the plurality of scan lines in the third area,with the second number being greater than the first number, and thefirst number being greater than the third number.
 13. The method ofclaim 1, wherein causing the spatial distribution of the plurality ofscan lines produced by the first sensor to be adjusted includes causingthe first sensor to generate a distribution of scan lines that samples acontinuous mathematical function, and wherein a peak of the continuousmathematical function corresponds to one of the areas of interest. 14.The method of claim 1, wherein the one or more sensors include only thefirst sensor.
 15. The method of claim 1, wherein the first sensor is alidar device, and wherein the one or more sensors include a camera. 16.The method of claim 1, further comprising: causing, by one or moreprocessors and based on the areas of interest, a center and/or a size ofa field of regard of the first sensor to be adjusted.
 17. The method ofclaim 1, wherein one or both of (i) identifying the areas of interest,and (ii) causing, based on the areas of interest, the spatialdistribution of the plurality of scan lines produced by the first sensorto be adjusted, are performed using a machine learning based attentionmodel.
 18. The method of claim 17, further comprising training, by oneor more processors, the attention model.
 19. The method of claim 18,wherein training the attention model includes training the attentionmodel using reinforcement learning.
 20. The method of claim 19, whereintraining the attention model using reinforcement learning includesproviding rewards based on achievement of a number of driving goals. 21.The method of claim 18, wherein training the attention model includestraining the attention model using an evolutionary algorithm.
 22. Themethod of claim 21, wherein training the attention model using anevolutionary algorithm includes training the attention model usingsimulation data generated as one or more simulated vehicles move throughone or more simulated environments.
 23. The method of claim 18, whereintraining the attention model includes: receiving data indicating visualfocus of a human driver during a real or simulated driving trip; usingthe received data indicating visual focus of the human driver togenerate labels for a labeled data set; and performing supervisedtraining of the attention model using the labeled data set.
 24. Anon-transitory computer-readable medium storing thereon instructionsexecutable by one or more processors to implement a sensor controlarchitecture for controlling at least a first sensor of a vehicle,wherein the first sensor senses an environment through which the vehicleis moving by producing a plurality of scan lines arranged according to aspatial distribution, and wherein the sensor control architecture isconfigured to: receive sensor data generated by one or more sensors ofthe vehicle, wherein the one or more sensors are configured to sense theenvironment through which the vehicle is moving; identify, based on thereceived sensor data, one or more areas of interest in the environment;and cause, based on the areas of interest, the spatial distribution ofthe plurality of scan lines produced by the first sensor to be adjusted.25. The non-transitory computer-readable medium of claim 24, wherein thesensor control architecture is configured to identify the one or moreareas of interest in the environment at least by: generating, based onthe received sensor data, signals descriptive of a current state of theenvironment; and identify, based on the signals descriptive of thecurrent state of the environment, the one or more areas of interest inthe environment.
 26. The non-transitory computer-readable medium ofclaim 25, wherein the sensor control architecture is configured toidentify the areas of interest at least by: identifying, based on thesignals descriptive of the current state of the environment, one or morecurrent and/or predicted positions of one or more dynamic objects thatare currently moving, or are capable of movement, within theenvironment; and identifying the areas of interest based on the currentand/or predicted positions of the dynamic objects.
 27. Thenon-transitory computer-readable medium of claim 25, wherein the sensorcontrol architecture is configured to identify the areas of interest atleast by: identifying, based on the signals descriptive of the currentstate of the environment, an area of road in front of the vehicle and/ora horizon in front of the vehicle; and identifying the areas of interestbased on a position of the area of road and/or the horizon.
 28. Thenon-transitory computer-readable medium of claim 24, wherein the sensorcontrol architecture is configured to cause the spatial distribution ofthe plurality of scan lines produced by the first sensor to be adjustedat least by: causing the first sensor to generate a distribution of scanlines that samples a continuous mathematical function, wherein a peak ofthe continuous mathematical function corresponds to one of the areas ofinterest.
 29. The non-transitory computer-readable medium of claim 24,wherein the sensor control architecture includes an attention modeltrained using machine learning.